From f8268518e2f75420dfae299a53f6ab66492104b0 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Sun, 7 Oct 2012 23:55:42 +0200 Subject: [PATCH] src/genunifont: Avoid format-security compiler warning Current warning without the patch: src/genunifont.c: In function 'print_data_row': src/genunifont.c:85:3: warning: format not a string literal and no format arguments [-Wformat-security] src/genunifont.c:88:3: warning: format not a string literal and no format arguments [-Wformat-security] -- Detlef --- src/genunifont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/genunifont.c b/src/genunifont.c index 4603be0..31373c4 100644 --- a/src/genunifont.c +++ b/src/genunifont.c @@ -82,10 +82,10 @@ static void print_data_row(FILE *out, char c) idx = hex_val(c); if (idx < 16) { - fprintf(out, line_map[idx]); + fputs(line_map[idx], out); } else { fprintf(stderr, "genunifont: invalid value %c\n", c); - fprintf(out, line_map[0]); + fputs(line_map[0], out); } }