From e759f75217996ec9753f3685d24e0cd8ebf36f1f Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Fri, 14 Feb 2014 13:17:59 +0100 Subject: [PATCH] smime_split(): canary said: fix one of my off-by-ones --- ssl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ssl.c b/ssl.c index c840651c..a87888e1 100644 --- a/ssl.c +++ b/ssl.c @@ -160,8 +160,7 @@ jetmp: for (;;) { savedsize += buflen; savedfields = srealloc(savedfields, savedsize); - memcpy(savedfields + strlen(savedfields), - buf, strlen(buf)); + strcat(savedfields, buf); if (keep) fwrite(buf, sizeof *buf, buflen, *hp); c = getc(ip); -- 2.11.4.GIT