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 1ca50ec9..f31288d2 100644
--- a/pluma/pluma-window.c
+++ b/pluma/pluma-window.c
@@ -318,7 +318,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;