aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 689dd1424..950e21dd3 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -234,9 +234,9 @@ static inline int writeTarHeader(struct TarBallInfo *tbInfo,
234 TAR_MAGIC_LEN + TAR_VERSION_LEN); 234 TAR_MAGIC_LEN + TAR_VERSION_LEN);
235 235
236 /* Enter the user and group names (default to root if it fails) */ 236 /* Enter the user and group names (default to root if it fails) */
237 if (my_getpwuid(header.uname, statbuf->st_uid) == NULL) 237 if (my_getpwuid(header.uname, statbuf->st_uid, sizeof(header.uname)) == NULL)
238 strcpy(header.uname, "root"); 238 strcpy(header.uname, "root");
239 if (my_getgrgid(header.gname, statbuf->st_gid) == NULL) 239 if (my_getgrgid(header.gname, statbuf->st_gid, sizeof(header.gname)) == NULL)
240 strcpy(header.gname, "root"); 240 strcpy(header.gname, "root");
241 241
242 if (tbInfo->hlInfo) { 242 if (tbInfo->hlInfo) {