summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c
index b86c0b68..a8e4be81 100644
--- a/pluma/pluma-window.c
+++ b/pluma/pluma-window.c
@@ -328,7 +328,7 @@ pluma_window_key_press_event (GtkWidget *widget,
g_strcanon (tempsize, "1234567890", '\0');
g_strreverse (tempsize);
- gchar tempfont [strlen (font)];
+ gchar tempfont [strlen (font) + 1];
strcpy (tempfont, font);
tempfont [strlen (font) - strlen (tempsize)] = 0;