summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-02-24 14:42:39 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-02-24 14:48:59 +0100
commit1e081ee37c0313656300c92510c701b3079ec09f (patch)
tree920fcab3e811d86545bdae51e0e435bb2fe3fe53 /src/ipcpd/normal
parent0bb0c6d37d4b4fac3c91513d331e2e4f3362edce (diff)
downloadouroboros-0.10.2.tar.gz
ouroboros-0.10.2.zip
ipcpd: Fix malformed sprintf in dt component0.10.2
The sprintf was missing a format string. Some compilers did not complain about this. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/ipcpd/normal')
-rw-r--r--src/ipcpd/normal/dt.c2
1 files changed, 1 insertions, 1 deletions
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);