From f80f3ea117a54cdf15d6a380c5106b2a2a09437e Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 13 Jul 2021 14:43:47 -0700 Subject: Increase scratch buf size in mutt_canonical_charset(). This siliences warnings about the destination being smaller than the source when copying. --- charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'charset.c') diff --git a/charset.c b/charset.c index 8211856c..9d523259 100644 --- a/charset.c +++ b/charset.c @@ -245,7 +245,7 @@ void mutt_canonical_charset (char *dest, size_t dlen, const char *name) { size_t i; char *p, *ext; - char in[LONG_STRING], scratch[LONG_STRING]; + char in[LONG_STRING], scratch[LONG_STRING+10]; strfcpy (in, name, sizeof (in)); if ((ext = strchr (in, '/'))) -- cgit v1.2.3