Skip to content

Commit 3f51ef5

Browse files
committed
Don't need to NULL terminate
1 parent c27bc78 commit 3f51ef5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_path.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,7 @@ int __convert_to_string(PathIterator &path,
10601060
if ((p = __append_to_string(p, buffer, *buffersize, "\n")) == NULL) return 1;
10611061
}
10621062

1063-
if ((p = __append_to_string(p, buffer, *buffersize, "\0")) == NULL) return 1;
1064-
*buffersize = p - buffer - 1;
1063+
*buffersize = p - buffer;
10651064

10661065
return 0;
10671066
}

0 commit comments

Comments
 (0)