aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 13:06:57 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 13:08:26 +0100
commita80100644cf4bb8acf2edb20ad2e57c3796deec4 (patch)
tree6d7c382659c1949f25a272c1a984d41e13d70956 /openbsc
parent12355ae658f357e4c971e44cfa286529dd322570 (diff)
mgcp: Address compiler error for sprintf misusage...
The hardening flags of debian have highlighted this sprintf mis-usage in the testcase. Address it.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/tests/mgcp/mgcp_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c
index e5b8bbdd5..7c02d09f2 100644
--- a/openbsc/tests/mgcp/mgcp_test.c
+++ b/openbsc/tests/mgcp/mgcp_test.c
@@ -210,7 +210,7 @@ static struct msgb *create_msg(const char *str)
struct msgb *msg;
msg = msgb_alloc_headroom(4096, 128, "MGCP msg");
- int len = sprintf((char *)msg->data, str);
+ int len = sprintf((char *)msg->data, "%s", str);
msg->l2h = msgb_put(msg, len);
return msg;
}