File: 09-format-warning.patch

package info (click to toggle)
sysstat 11.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,916 kB
  • ctags: 2,690
  • sloc: ansic: 25,138; sh: 1,094; tcl: 756; makefile: 559; perl: 257; python: 202
file content (26 lines) | stat: -rw-r--r-- 670 bytes parent folder | download
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 */
 		}
 	}