This commit is contained in:
OM committed 2023-05-27 16:19:31 +02:00
1 parent 3d223f5a5d
commit f1f9ed744d
12 files changed
+233 -269

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ int main(int argc, const char** argv)
while (std::getline(ifp, buffer))
{
// Strip trailing whitespace from line
const char* end = buffer.c_str() + buffer.length() - 1;
const char* end = buffer.c_str() + buffer.length();
while (end >= buffer.c_str() && isspace(*end)) {
end--;
}