]> Sergey Matveev's repositories - nnn.git/commitdiff
Added brackets for tcc compliance (#103)
authorarcadius3d <arcadius@tuta.io>
Tue, 10 Apr 2018 01:28:52 +0000 (22:28 -0300)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 10 Apr 2018 01:28:52 +0000 (06:58 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index 1c3f7a7b8c74ae943a5bf111356573fa065bb69f..d0db0519fd723723e893ba064fb65b17bc94e63c 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1928,7 +1928,7 @@ show_help(char *path)
        char tmp[] = "/tmp/nnnXXXXXX";
        int i = 0, fd = mkstemp(tmp);
        char *start, *end;
-       static char helpstr[] = (
+       static char helpstr[] = {
           "cKey | Function\n"
             "e- + -\n"
       "7↑, k, ^P | Prev entry\n"
@@ -1977,7 +1977,7 @@ show_help(char *path)
 #endif
             "e? | Help, settings\n"
         "aQ, ^G | Quit and cd\n"
-        "aq, ^X | Quit\n\n");
+        "aq, ^X | Quit\n\n"};
 
        if (fd == -1)
                return -1;