Skip to content

Commit

Permalink
Ensure that return path has zero terminator.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Apr 19, 2021
1 parent ff276eb commit 5c29a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dosnames.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ char *dos_real_path(char drive, const char *unix_path)
else
{
// Convert remaining components
ret = calloc(1, 64);
ret = calloc(1, 65);
strncat(ret, "C:", 64);

path[l] = 0;
Expand Down

0 comments on commit 5c29a1f

Please sign in to comment.