diff options
Diffstat (limited to 'tests/mgcp/mgcp_patch_test.c')
-rw-r--r-- | tests/mgcp/mgcp_patch_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mgcp/mgcp_patch_test.c b/tests/mgcp/mgcp_patch_test.c index 68d163d..3153ecd 100644 --- a/tests/mgcp/mgcp_patch_test.c +++ b/tests/mgcp/mgcp_patch_test.c @@ -197,7 +197,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; } |