String terminator: \n --> \0

This commit is contained in:
Robert Schulze 2023-05-22 19:09:11 +00:00
parent df436b2cd4
commit d5cfcdfae1
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -70,7 +70,7 @@ public:
memset(res_chars.begin() + pos, space, times);
pos += times;
*(res_chars.begin() + pos) = '\n';
*(res_chars.begin() + pos) = '\0';
pos += 1;
res_offsets[i] = pos;
@ -107,7 +107,7 @@ public:
memset(res_chars.begin() + pos, space, times);
pos += times;
*(res_chars.begin() + pos) = '\n';
*(res_chars.begin() + pos) = '\0';
pos += 1;
res_offsets[i] = pos;