summaryrefslogtreecommitdiff
path: root/stow.c
diff options
context:
space:
mode:
Diffstat (limited to 'stow.c')
-rw-r--r--stow.c2
1 files changed, 1 insertions, 1 deletions
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;