mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(canonicalize_file_name): NUL-terminate the result.
This commit is contained in:
1 parent
e02387ea57
commit
31c3844239
1 file changed
+4
@@ -159,6 +159,10 @@ canonicalize_file_name (const char *name)
|
||||
}
|
||||
|
||||
free (extra_buf);
|
||||
|
||||
/* NUL-terminate the resulting name. */
|
||||
resolved[resolved_len] = '\0';
|
||||
|
||||
return resolved;
|
||||
|
||||
#else /* !HAVE_RESOLVEPATH */
|
||||
|
||||
Reference in new issue
Block a user