diff options
Diffstat (limited to 'camel/camel-charset-map.c')
-rw-r--r-- | camel/camel-charset-map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-charset-map.c b/camel/camel-charset-map.c index 5fcd490dde..3ae00a5fb8 100644 --- a/camel/camel-charset-map.c +++ b/camel/camel-charset-map.c @@ -400,7 +400,7 @@ camel_charset_canonical_name (const char *charset) if (charset == NULL) return NULL; - name = g_alloca (strlen (charset)); + name = g_alloca (strlen (charset) + 1); strcpy (name, charset); g_ascii_strdown (name, -1); |