]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
server: Add missing newline in select -v error output.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Jun 2023 17:59:56 +0000 (19:59 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 14 Jun 2023 19:17:38 +0000 (21:17 +0200)
The error message that lacks the newline can be triggered by runing
"select -v X".

afs.c

diff --git a/afs.c b/afs.c
index 78e42eaec54b9a1cbb87a3c349a0fa12ae98601f..9db94a826cf842a52c0623df73e7cc246b512a09 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -448,7 +448,7 @@ static int activate_mood_or_playlist(const char *arg, struct para_buffer *pb)
                mode = PLAY_MODE_MOOD;
        } else {
                ret = -ERRNO_TO_PARA_ERROR(EINVAL);
-               msg = make_message("%s: parse error", arg);
+               msg = make_message("%s: parse error\n", arg);
        }
        if (pb)
                para_printf(pb, "%s", msg);