From 55fbd81d1d991a3c6929d058c0bfabe44096e78e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 17 Apr 2008 21:50:49 +0000 Subject: [PATCH] --- libcitadel/lib/tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcitadel/lib/tools.c b/libcitadel/lib/tools.c index 3a5e921b6..773b75825 100644 --- a/libcitadel/lib/tools.c +++ b/libcitadel/lib/tools.c @@ -446,7 +446,7 @@ char *rfc2047encode(char *line, long length) return strdup(line); } - result = (char*) malloc(strlen(UTF8_HEADER) + 4 + length * 2); + result = (char*) malloc(sizeof(UTF8_HEADER) + 4 + length * 2); strncpy (result, UTF8_HEADER, strlen (UTF8_HEADER)); CtdlEncodeBase64(result + strlen(UTF8_HEADER), line, length, 0); end = strlen (result); -- 2.30.2