summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-05-14 09:14:58 (GMT)
committerDenys Vlasenko <vda.linux@googlemail.com>2018-05-14 09:14:58 (GMT)
commit2ccd3522816291bd7e3ede3f60370d725d86e179 (patch)
tree58d6e9e41b1dd7acf06b8604708085bb7776d149
parent6027597fd1a1a9293818db4729625fff375bf907 (diff)
downloadbusybox-2ccd3522816291bd7e3ede3f60370d725d86e179.tar.gz
busybox-2ccd3522816291bd7e3ede3f60370d725d86e179.tar.bz2
popmaildir: placate gcc8 "warning: 'strncpy' output truncated"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--mailutils/popmaildir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c
index a4aad36..5894567 100644
--- a/mailutils/popmaildir.c
+++ b/mailutils/popmaildir.c
@@ -265,7 +265,7 @@ int popmaildir_main(int argc UNUSED_PARAM, char **argv)
// atomically move message to ./new/
target = xstrdup(filename);
- strncpy(target, "new", 3);
+ memcpy(target, "new", 3);
// ... or just stop receiving on failure
if (rename_or_warn(filename, target))
break;