diff options
-rw-r--r-- | rfc2047.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rfc2047.c b/rfc2047.c index 6f23d10..d0bd103 100644 --- a/rfc2047.c +++ b/rfc2047.c @@ -168,6 +168,9 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc) goto nocode; free(srcenc); srcenc = strdup(s); + char *lang = strchr(srcenc, '*'); + if (lang) + *lang = 0; // kill RFC2231 language tag if (!srcenc) goto nocode; if (ic != (iconv_t)-1) |