aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-26 21:39:53 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-26 21:41:16 +0100
commitf8b73b15c06055719e712b5a70d130cfd42bea4b (patch)
tree6d281ed7fcc2dcb9bc01677b80f4cc1a869538db /src
parent8e88d37ceca1dcbb91c59a26d6467df8524283f5 (diff)
hnbgw_vty.c: Fix "-Werror=format-security" failure in vty_out()
We have to use a format string, we cannot directly print "name". Fixes a build error on our OBS builds: hnbgw_vty.c:156:5: error: format not a string literal and no format arguments [-Werror=format-security] which was introduced in Change-Id I3c937306a011715e163a40bc8ef8ec7e8d4e5d08 about one week ago. Change-Id: I042989c2b7b379284b2ee5fea3bd8f8ce406b09e
Diffstat (limited to 'src')
-rw-r--r--src/hnbgw_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hnbgw_vty.c b/src/hnbgw_vty.c
index 2c47bba..859cd31 100644
--- a/src/hnbgw_vty.c
+++ b/src/hnbgw_vty.c
@@ -153,7 +153,7 @@ static void vty_out_ofd_addr(struct vty *vty, struct osmo_fd *ofd)
vty_out(vty, "(no addr)");
return;
}
- vty_out(vty, name);
+ vty_out(vty, "%s", name);
talloc_free(name);
}