diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-25 11:46:06 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-25 11:46:06 +0800 |
commit | bcc58d8bc72d02a6a54f52fda53f7f4f1d192d6a (patch) | |
tree | 6402401cbb65e1a5bb16fe380f0eb99ee5ef3c25 /camel/camel-charset-map.c | |
parent | afea60336c6d2bf2e50cfba7c839d5cfd4168581 (diff) | |
download | gsoc2013-evolution-bcc58d8bc72d02a6a54f52fda53f7f4f1d192d6a.tar.gz gsoc2013-evolution-bcc58d8bc72d02a6a54f52fda53f7f4f1d192d6a.tar.zst gsoc2013-evolution-bcc58d8bc72d02a6a54f52fda53f7f4f1d192d6a.zip |
g_alloca (strlen (charset) + 1) so we don't overflow the buffer.
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
* camel-charset-map.c (camel_charset_canonical_name): g_alloca
(strlen (charset) + 1) so we don't overflow the buffer.
svn path=/trunk/; revision=20047
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); |