popmaildir: placate gcc8 "warning: 'strncpy' output truncated"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6027597fd1
commit
2ccd352281
@ -265,7 +265,7 @@ int popmaildir_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
|
|
||||||
// atomically move message to ./new/
|
// atomically move message to ./new/
|
||||||
target = xstrdup(filename);
|
target = xstrdup(filename);
|
||||||
strncpy(target, "new", 3);
|
memcpy(target, "new", 3);
|
||||||
// ... or just stop receiving on failure
|
// ... or just stop receiving on failure
|
||||||
if (rename_or_warn(filename, target))
|
if (rename_or_warn(filename, target))
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user