384533ef74
As reported by GCC 4.8, the size argument passed to memset() was incorrect. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@39923 3c298f89-4303-0410-b956-a3cf2f4a3e73
12 lines
313 B
Diff
12 lines
313 B
Diff
--- a/src/stun.c
|
|
+++ b/src/stun.c
|
|
@@ -399,7 +399,7 @@ stunParseMessage( char* buf, unsigned in
|
|
char* body;
|
|
unsigned int size;
|
|
ortp_debug("stun: Received stun message: %i bytes\n", bufLen);
|
|
- memset(msg, 0, sizeof(msg));
|
|
+ memset(msg, 0, sizeof(*msg));
|
|
|
|
if (sizeof(StunMsgHdr) > bufLen)
|
|
{
|