openbsd-ports/converters/mpack/patches/patch-xmalloc_c
sthen 2476a2db73 update to mpack 1.6 plus various patches from Sebastian Pipping:
- SECURITY: don't create world readable files. CVE-2011-4919
- avoid conflicting prototypes
2012-01-08 00:12:12 +00:00

13 lines
299 B
Plaintext

$OpenBSD: patch-xmalloc_c,v 1.1 2012/01/08 00:12:13 sthen Exp $
--- xmalloc.c.orig Sun Jan 8 00:04:35 2012
+++ xmalloc.c Sun Jan 8 00:04:44 2012
@@ -24,7 +24,7 @@
*/
#include <stdio.h>
#include <string.h>
-extern char *malloc(), *realloc();
+#include <stdlib.h>
char *xmalloc (int size)
{