We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e6cf5 commit c27bc78Copy full SHA for c27bc78
src/_path.h
@@ -1060,8 +1060,8 @@ int __convert_to_string(PathIterator &path,
1060
if ((p = __append_to_string(p, buffer, *buffersize, "\n")) == NULL) return 1;
1061
}
1062
1063
- *p = '\0';
1064
- *buffersize = p - buffer;
+ if ((p = __append_to_string(p, buffer, *buffersize, "\0")) == NULL) return 1;
+ *buffersize = p - buffer - 1;
1065
1066
return 0;
1067
0 commit comments