ortp: gcc 4.8 fails to compile this module because of a wrong memset
This commit is contained in:
parent
286a9a90cf
commit
1a9dd62e22
|
@ -0,0 +1,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)
|
||||
{
|
|
@ -1,8 +1,9 @@
|
|||
require ortp.inc
|
||||
DEPENDS = "glib-2.0 "
|
||||
PR = "${INC_PR}.0"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
SRC_URI += "file://0001-fix-unused-variables.patch;patch=1"
|
||||
SRC_URI += "file://0001-fix-unused-variables.patch;patch=1 \
|
||||
file://compile-fixes-newer-gcc.diff"
|
||||
|
||||
SRC_URI[md5sum] = "94546901d14b85f97342f4ecf39489b1"
|
||||
SRC_URI[sha256sum] = "3b655a79f9122afd298e9cd702e542908bbd6ea1337c02553110c57e0b3c5835"
|
||||
|
|
Loading…
Reference in New Issue