]> granicus.if.org Git - mutt/commitdiff
Fix some typos in the nl_langinfo stuff.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 9 Jun 2000 05:51:33 +0000 (05:51 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 9 Jun 2000 05:51:33 +0000 (05:51 +0000)
charset.c
init.c

index 90088d02c6526d9fd1f9417d7c52126f38a2f08f..0eed0533439b5e180fbd233a99966bc009f24c5c 100644 (file)
--- a/charset.c
+++ b/charset.c
@@ -61,7 +61,7 @@ void mutt_set_langinfo_charset (void)
   /* compactify the character set name returned */
   for (d = s = buff; *s; s++)
   {
-    if (!strstr ("-_.", *s))
+    if (!strchr ("-_.", *s))
       *d++ = *s;
   }
   *d = '\0';
@@ -79,7 +79,7 @@ void mutt_set_langinfo_charset (void)
   }
   else if (!strncasecmp (buff, "windows", 7))
   {
-    snprintf (buff2, sizeof (buff2), "windows-%s" buff + 7);
+    snprintf (buff2, sizeof (buff2), "windows-%s", buff + 7);
   }
 
   /* fix the spelling */
diff --git a/init.c b/init.c
index 83a30911d5edec599025020a6b57a1803c8f47b1..eba3331f2169cae5d3200b22ea8bbda3db126ad2 100644 (file)
--- a/init.c
+++ b/init.c
@@ -23,6 +23,7 @@
 #include "history.h"
 #include "keymap.h"
 #include "mbyte.h"
+#include "charset.h"
 
 
 #ifdef HAVE_PGP