diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-09-27 06:45:58 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-09-27 06:45:58 +0000 |
commit | 174b5f60beeb5ce84c2164c5f3c45184ad7865d5 (patch) | |
tree | 577b0e98604baf21e90eb0d7a3b796dfd87f835f | |
parent | 438252d7b7e637227ccbd674e797cdeb00111a84 (diff) |
Fix #287.
-rw-r--r-- | charset.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -212,13 +212,13 @@ void mutt_canonical_charset (char *dest, size_t dlen, const char *name) char scratch[LONG_STRING]; /* catch some common iso-8859-something misspellings */ - if (!strncasecmp (name, "iso8859", 7) && name[7] != '-') + if (!mutt_strncasecmp (name, "iso8859", 7) && name[7] != '-') snprintf (scratch, sizeof (scratch), "iso_8859-%s", name + 8); else - strfcpy (scratch, name, sizeof (scratch)); + strfcpy (scratch, NONULL(name), sizeof (scratch)); for (i = 0; PreferredMIMENames[i].key; i++) - if (!strcasecmp (scratch, PreferredMIMENames[i].key)) + if (!mutt_strcasecmp (scratch, PreferredMIMENames[i].key)) { strfcpy (dest, PreferredMIMENames[i].pref, dlen); return; |