pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-cbc/+/28646 )
Change subject: vty: Fix call to OSMO_STRBUF_PRINTF
......................................................................
vty: Fix call to OSMO_STRBUF_PRINTF
"""
osmo-cbc/src/cbc_vty.c:61:3: error: format not a string literal and no format arguments
[-Werror=format-security]
61 | OSMO_STRBUF_PRINTF(sb, peer->remote_host[i]);
"""
Change-Id: I90e7bdbe9f01dae9269ae4850bc2d7391fee71ec
---
M src/cbc_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-cbc refs/changes/46/28646/1
diff --git a/src/cbc_vty.c b/src/cbc_vty.c
index 5244c3e..916adc2 100644
--- a/src/cbc_vty.c
+++ b/src/cbc_vty.c
@@ -58,7 +58,7 @@
for (i = 0; i < peer->num_remote_host; i++) {
if (i > 0)
OSMO_STRBUF_PRINTF(sb, ",");
- OSMO_STRBUF_PRINTF(sb, peer->remote_host[i]);
+ OSMO_STRBUF_PRINTF(sb, "%s", peer->remote_host[i]);
}
vty_out(vty, "|%-20s| %-15s| %-5d| %-6s| %-20s|%s",
--
To view, visit
https://gerrit.osmocom.org/c/osmo-cbc/+/28646
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: I90e7bdbe9f01dae9269ae4850bc2d7391fee71ec
Gerrit-Change-Number: 28646
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange