diff options
-rw-r--r-- | lr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c index 754eafa..229591a 100644 --- a/lr.c +++ b/lr.c @@ -1630,7 +1630,7 @@ print_format(struct fileinfo *fi) struct stat st; st.st_mode = 0; - strcpy(target, fi->fpath); + snprintf(target, sizeof target, "%s", fi->fpath); while (j && target[j-1] != '/') j--; ssize_t l = readlink(fi->fpath, |