(canonicalize_file_name): NUL-terminate the result.

This commit is contained in:
Jim Meyering committed 2003-04-10 17:03:26 +00:00
1 parent e02387ea57
commit 31c3844239
1 file changed
+4
+4
View File
@@ -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 */