From: Thomas Roessler Date: Thu, 8 Jun 2000 09:56:37 +0000 (+0000) Subject: Don't return data on the stack. Noted by "Andrew W. Nosenko" X-Git-Tag: mutt-1-3-3-rel~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d17b6eb5d8ebc702fe8da26daa9130c2545f9a5e;p=mutt Don't return data on the stack. Noted by "Andrew W. Nosenko" . --- diff --git a/charset.c b/charset.c index f74f0e2a..e5759368 100644 --- a/charset.c +++ b/charset.c @@ -463,7 +463,7 @@ FGETCONV *fgetconv_open (FILE *file, const char *from, const char *to) { struct fgetconv_s *fc; iconv_t cd = (iconv_t)-1; - const char *repls[] = { "\357\277\275", "?", 0 }; + static const char *repls[] = { "\357\277\275", "?", 0 }; if (from && to) cd = mutt_iconv_open (to, from);