pespin has submitted this change. (
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(-)
Approvals:
laforge: Looks good to me, approved
fixeria: Looks good to me, but someone else must approve
Jenkins Builder: Verified
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: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged