- fixed compilation problem in add_path_component()

This commit is contained in:
cebix 1999-10-22 13:57:05 +00:00
parent f41718608c
commit 13301146d9
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ void add_path_component(char *path, const char *component, int max_len)
path[l] = '/'; path[l] = '/';
path[l+1] = 0; path[l+1] = 0;
} }
strncat(path, s, max_len-1); strncat(path, component, max_len-1);
} }

View File

@ -67,7 +67,7 @@ void add_path_component(char *path, const char *component, int max_len)
path[l] = '/'; path[l] = '/';
path[l+1] = 0; path[l+1] = 0;
} }
strncat(path, s, max_len-1); strncat(path, component, max_len-1);
} }