projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6027597
)
popmaildir: placate gcc8 "warning: 'strncpy' output truncated"
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 14 May 2018 09:14:58 +0000
(11:14 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 14 May 2018 09:14:58 +0000
(11:14 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
mailutils/popmaildir.c
patch
|
blob
|
history
diff --git
a/mailutils/popmaildir.c
b/mailutils/popmaildir.c
index a4aad3662cb85736c8dad9b41d2648cbeeb0b53d..589456715420d372f837c203491f51b68ce8c9d6 100644
(file)
--- 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);
-
strn
cpy(target, "new", 3);
+
mem
cpy(target, "new", 3);
// ... or just stop receiving on failure
if (rename_or_warn(filename, target))
break;