From 1e081ee37c0313656300c92510c701b3079ec09f Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 24 Feb 2018 14:42:39 +0100 Subject: ipcpd: Fix malformed sprintf in dt component The sprintf was missing a format string. Some compilers did not complain about this. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/normal/dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c index 53c7ed16..38a203cf 100644 --- a/src/ipcpd/normal/dt.c +++ b/src/ipcpd/normal/dt.c @@ -128,7 +128,7 @@ static int dt_stat_read(const char * path, } if (dt.stat[fd].addr == ipcpi.dt_addr) - sprintf(addrstr, dt.comps[fd].name); + sprintf(addrstr, "%s", dt.comps[fd].name); else sprintf(addrstr, "%" PRIu64, dt.stat[fd].addr); -- cgit v1.2.3