Code

Output extra \n on tig -h
authorStefan Naewe <naewe@as100897.atlas.de>
Wed, 26 Mar 2008 12:04:53 +0000 (13:04 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 27 Mar 2008 08:31:29 +0000 (09:31 +0100)
The usage string does not contain a '\n' as the last character which is
annoying when calling 'tig -h'.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c

diff --git a/tig.c b/tig.c
index 680811f24f191d5b54450230c426c193c9613779..a54e57a41ad2cf86c5ecb32f66f78ed96c305e62 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -524,7 +524,7 @@ parse_options(int argc, char *argv[])
                        return FALSE;
 
                } else if (!strcmp(opt, "-h") || !strcmp(opt, "--help")) {
-                       printf(usage);
+                       printf("%s\n", usage);
                        return FALSE;
                }