too much padding
[netris.git] / curses.c
index 637e8971721f97836f6cfcd826a9baa23de2921f..5856f65f1b8d13b6c8519d09b819108a136ec50a 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -29,7 +29,7 @@
 #include "curses.h"
 #include "util.h"
 #include "board.h"
-#include "msg.en.h"
+#include "msg.h"
 
 #ifdef NCURSES_VERSION
 # define HAVE_NCURSES
@@ -213,7 +213,7 @@ void DrawTitle(void)
        s = malloc(cols + 1);
        sprintf(s, " " MSG_TITLE " %s", version_string);
        const int titlelen = strlen(s);
-       memset(&s[titlelen], ' ', cols - strlen(MSG_TITLE)); // pad
+       memset(&s[titlelen], ' ', cols - titlelen); // pad
        if (cols > titlelen + 1 + strlen(MSG_TITLESUB))
                memcpy(&s[cols - 1 - strlen(MSG_TITLESUB)], MSG_TITLESUB, sizeof(MSG_TITLESUB) - 1);
        memcpy(&s[cols], "\0", 1);