libnfc: moved to github
[openwrt/svn-archive/packages.git] / libs / ortp / patches / 001-memset_fix.patch
1 --- a/src/stun.c
2 +++ b/src/stun.c
3 @@ -399,7 +399,7 @@ stunParseMessage( char* buf, unsigned in
4 char* body;
5 unsigned int size;
6 ortp_debug("stun: Received stun message: %i bytes\n", bufLen);
7 - memset(msg, 0, sizeof(msg));
8 + memset(msg, 0, sizeof(*msg));
9
10 if (sizeof(StunMsgHdr) > bufLen)
11 {