From: Thomas Roessler Date: Fri, 9 Jun 2000 05:51:33 +0000 (+0000) Subject: Fix some typos in the nl_langinfo stuff. X-Git-Tag: mutt-1-3-3-rel~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22f6f6df23a8ca711ede489419a554cf647666f3;p=mutt Fix some typos in the nl_langinfo stuff. --- diff --git a/charset.c b/charset.c index 90088d02..0eed0533 100644 --- 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 83a30911..eba3331f 100644 --- 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