]> granicus.if.org Git - mutt/commitdiff
Don't return data on the stack. Noted by "Andrew W. Nosenko"
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Jun 2000 09:56:37 +0000 (09:56 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Jun 2000 09:56:37 +0000 (09:56 +0000)
<awn@bcs.zp.ua>.

charset.c

index f74f0e2a80687da54170a6bb984f7ec7a59c0bef..e575936828009fbad80035c9bb245304ab29d38e 100644 (file)
--- 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);