aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mailutils/popmaildir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c
index a4aad3662..589456715 100644
--- a/mailutils/popmaildir.c
+++ b/mailutils/popmaildir.c
@@ -265,7 +265,7 @@ int popmaildir_main(int argc UNUSED_PARAM, char **argv)
265 265
266 // atomically move message to ./new/ 266 // atomically move message to ./new/
267 target = xstrdup(filename); 267 target = xstrdup(filename);
268 strncpy(target, "new", 3); 268 memcpy(target, "new", 3);
269 // ... or just stop receiving on failure 269 // ... or just stop receiving on failure
270 if (rename_or_warn(filename, target)) 270 if (rename_or_warn(filename, target))
271 break; 271 break;