aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-06-12 14:57:06 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-06-12 14:57:06 +0200
commit5b6d2ff29fc0cf6e837c7136a45176af4b067a5c (patch)
treef5e0f8efc97dc32283c04fb478f254b2738f0938
parent4d2607fe215a5124e869e8e15c57b9aa16c4879a (diff)
downloadmblaze-5b6d2ff29fc0cf6e837c7136a45176af4b067a5c.tar.gz
rfc2231: blaze822_mime2231_parameter: ensure plain file names are null terminated
-rw-r--r--rfc2231.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rfc2231.c b/rfc2231.c
index 85cf629..49fcc5d 100644
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -83,6 +83,7 @@ found_plain:
memcpy(dst, sbuf, ebuf - sbuf);
dst += ebuf - sbuf;
}
+ *dst = 0;
} else {
break;
}