summaryrefslogtreecommitdiffstats
path: root/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'charset.c')
-rw-r--r--charset.c4
1 files changed, 2 insertions, 2 deletions
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 */