X-Git-Url: http://git.shiar.nl/netris.git/blobdiff_plain/314fb8c12b376d5e9bc62ec8b5db9458618a162b..3893341884fe96131de8e2417d2bdfdf7e42479c:/curses.c diff --git a/curses.c b/curses.c index 7b5a26d..5856f65 100644 --- a/curses.c +++ b/curses.c @@ -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);