Fix format security warnings.

Fix format security warnings, since they are treated as errors in
Standards Version 3.9.8.
This commit is contained in:
Carlos Maddela
2016-12-19 01:31:02 +11:00
parent a24f411118
commit ceff546a54
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
From: Carlos Maddela <e7appew@gmail.com>
Date: Mon, 19 Dec 2016 00:58:24 +1100
Subject: Fix format security warnings.
Description: Fix format security warnings.
They are treated as errors in Standards Version 3.9.8.
Author: Carlos Maddela <e7appew@gmail.com>
Origin: vendor
Forwarded: no
Last-Update: 2016-12-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---
tools/memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/memory.c b/tools/memory.c
index f2c0c48..edf32ec 100644
--- a/tools/memory.c
+++ b/tools/memory.c
@@ -165,7 +165,7 @@ static void print_ptr(memchunk *mc, int size)
static void print_ptrs(char *msg)
{ int bucket,i,n=0;
- fprintf(stdout, msg);
+ fprintf(stdout, "%s", msg);
for(bucket=0; bucket<64; bucket++)
for(i=0; i<phCnt[bucket]; i++)