summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--maildrop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/maildrop.c b/maildrop.c
index ce242f9..edc47b7 100644
--- a/maildrop.c
+++ b/maildrop.c
@@ -143,6 +143,7 @@ expand(char *dst, const char *src, size_t dst_sz, struct passwd *pw)
size_t i = 0, r;
int c;
+ memset(dst, 0, dst_sz);
while ((c = *src++)) {
if (i >= dst_sz)
break;