File: no-format

package info (click to toggle)
meterec 0.9.3-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 948 kB
  • sloc: ansic: 4,973; sh: 1,005; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: don't use formatted print where unnecessary
 This fixes a "not a literal" -Werror=format-security spurious fail.

--- meterec-0.9.3.orig/display.c
+++ meterec-0.9.3/display.c
@@ -471,7 +471,7 @@ void display_tiny_meter(struct meterec_s
 	if (side == IN)
 		pos = iec_scale( meterec->ports[port].db_in, 5);
 
-	wprintw(win, blink + 2*pos);
+	waddstr(win, blink + 2*pos);
 
 }