Merge branch 't/versioning_improvements'
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 4d2c9f7..baab0bd 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -294,7 +294,7 @@ static char *configfile_exists(void)
 static void add_spaces(WINDOW* win, unsigned int num)
 {
        char space[] = "                                ";
-       unsigned sz = sizeof(space);
+       unsigned sz = sizeof(space) - 1; /* number of spaces */
 
        while (num >= sz)  {
                waddstr(win, space);