]> granicus.if.org Git - sysstat/commitdiff
rndr_stats.c: Cosmetic fix
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 30 Apr 2017 13:43:56 +0000 (15:43 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 30 Apr 2017 13:43:56 +0000 (15:43 +0200)
Simplify fix for the warning given by gcc -Werror=format-security.

Debian patch: 09-format-warning.patch

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
rndr_stats.c

index c0c8658d90564d15250a4030ba811eeb90b61d92..d55648638728513ab44553e77cd40e470ce3e7df 100644 (file)
@@ -133,11 +133,7 @@ static void render(int isdb, char *pre, int rflags, const char *pptxt,
                        }
                }
                else {
-                       /*
-                        * Additional NULL parameter below works around
-                        * fatal error when compiled with -Werror=format-security.
-                        */
-                       printf(txt[isdb], NULL);        /* No args */
+                       printf("%s", txt[isdb]);
                }
        }