aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-font.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-font.c')
-rw-r--r--e-util/e-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e-util/e-font.c b/e-util/e-font.c
index 64ea82700c..3d99c0619b 100644
--- a/e-util/e-font.c
+++ b/e-util/e-font.c
@@ -440,7 +440,7 @@ find_best_bold (gchar **namelist, gint length, gchar *weight)
g_hash_table_insert (wh, "black", GINT_TO_POINTER (8));
}
- s = alloca (strlen (weight));
+ s = alloca (strlen (weight) + 1);
strcpy (s, weight);
g_strdown (s);
sw = GPOINTER_TO_INT (g_hash_table_lookup (wh, s));