summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib.c4
-rw-r--r--stow.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib.c b/lib.c
index 01cdbd0..717979b 100644
--- a/lib.c
+++ b/lib.c
@@ -151,8 +151,8 @@ make_filepath (char *path, char *filename)
if (filepath == NULL)
return NULL;
- strncpy (filepath, path, length);
- strncat (filepath, filename, strlen (filename));
+ strcpy (filepath, path);
+ strcat (filepath, filename);
return filepath;
}
diff --git a/stow.c b/stow.c
index ddbcf20..adfcf53 100644
--- a/stow.c
+++ b/stow.c
@@ -287,7 +287,7 @@ stow_diradd (char *dir, int flags, struct patternlist *patternlist,
if (tmp == NULL)
return ENOMEM;
- strncpy (tmp, dir, dir_len);
+ strcpy (tmp, dir);
tmp[dir_len] = '/';
tmp[dir_len + 1] = 0;