1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Robert Luberda <robert@debian.org>
Date: Sun, 6 Feb 2011 15:44:52 +0100
Subject: 09-format-warning
Fix a warning given by gcc -Wformat.
---
rndr_stats.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/rndr_stats.c b/rndr_stats.c
index 9f0b5ad..ee6cc9e 100644
--- a/rndr_stats.c
+++ b/rndr_stats.c
@@ -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]); /* No args */
}
}
|