]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: fix compiler warning on extra printf argument
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 29 Sep 2015 08:07:26 +0000 (10:07 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 29 Sep 2015 14:28:28 +0000 (16:28 +0200)
client.c

index ba545b36498019e14d18a506a8f4ade9d1e489d1..cb8e6bb101d5519f99dc0541b74bf9b14e245163 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1261,7 +1261,8 @@ give_help(void)
   /* Indent the second column */
   for (s = cols, line = 0; s < cols + sizeof (cols); s += len + 1, line++) {
     len = strlen(s);
-    printf(line % 2 == 0 ? (len >= 28 ? "%s\n%28s" : "%-28s") : "%s\n", s, "");
+    printf(line % 2 == 0 ? (len >= 28 ? "%s\n%28s" : "%-28s%s") : "%s%s\n",
+           s, "");
   }
 }