Code

screen: restore newline character
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sat, 29 Oct 2011 13:10:20 +0000 (15:10 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 2 Nov 2011 14:36:29 +0000 (15:36 +0100)
It was removed in commit 389a1ad8:
- fprintf(stderr, _("Error: Screen to small\n"));
+ fprintf(stderr, "%s", _("Error: Screen too small"));
exit(EXIT_FAILURE);

src/screen.c

index 4d897581e5ea86138155dfe96eca7d175f329bc7..315306061b66f86d2d3d9a6826f32cba224c2b12 100644 (file)
@@ -202,7 +202,7 @@ screen_resize(struct mpdclient *c)
 {
        if (COLS<SCREEN_MIN_COLS || LINES<SCREEN_MIN_ROWS) {
                screen_exit();
-               fprintf(stderr, "%s", _("Error: Screen too small"));
+               fprintf(stderr, "%s\n", _("Error: Screen too small"));
                exit(EXIT_FAILURE);
        }