diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2007-03-13 10:58:34 +0100 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2007-03-13 10:58:34 +0100 |
commit | 6e0a9d3fb3bb3ae353b2769b0051b0cf8e34222d (patch) | |
tree | 7d5047fd678dd4de130da3a4635edd9fdb095c68 /charset.c | |
parent | 6843c6b33711ca9061a87e1e048c23fc2918578e (diff) |
Clean up the strcat cleanup
Diffstat (limited to 'charset.c')
-rw-r--r-- | charset.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -245,9 +245,10 @@ void mutt_canonical_charset (char *dest, size_t dlen, const char *name) char *p; char scratch[LONG_STRING]; - if (!ascii_strcasecmp (name, "utf-8")) { - strfcpy (dest, name, dlen); - goto found_utf8; + if (!ascii_strcasecmp (name, "utf-8")) + { + strfcpy (dest, "utf-8", dlen); + return; } /* catch some common iso-8859-something misspellings */ @@ -272,7 +273,6 @@ void mutt_canonical_charset (char *dest, size_t dlen, const char *name) strfcpy (dest, scratch, dlen); -found_utf8: /* for cosmetics' sake, transform to lowercase. */ for (p = dest; *p; p++) *p = ascii_tolower (*p); |