diff options
-rw-r--r-- | lr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c index 636b768..7f3d8aa 100644 --- a/lr.c +++ b/lr.c @@ -2144,7 +2144,7 @@ callback(const char *fpath, const struct stat *sb, int depth, ino_t entries, off } if (need_xattr) { - strncpy(fi->xattr, xattr_string(fi->fpath), sizeof fi->xattr); + strncpy(fi->xattr, xattr_string(fi->fpath), sizeof fi->xattr - 1); if (strlen(fi->xattr) > maxxattr) maxxattr = strlen(fi->xattr); } else |