aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-misc/ortp/files/compile-fixes-newer-gcc.diff
blob: 94ddde0bf84a8b157945c7dc0b49af0408fb40ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: ortp-0.16.5/src/stun.c
===================================================================
--- ortp-0.16.5.orig/src/stun.c
+++ ortp-0.16.5/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)
    {