mgcp: Address compiler error for sprintf misusage...

The hardening flags of debian have highlighted this sprintf mis-usage
in the testcase. Address it.
This commit is contained in:
Holger Hans Peter Freyther
2013-12-12 13:06:57 +01:00
parent 12355ae658
commit a80100644c

View File

@@ -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;
}