Files
gentoo/dev-python/pypcap/files/pypcap-1.1.6-mktemp.patch
Jeroen Roovers 01a804d9f2 dev-python/pypcap: Version bump.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
2017-05-05 14:34:36 +02:00

20 lines
380 B
Diff

--- a/pcap_ex.c
+++ b/pcap_ex.c
@@ -11,6 +11,7 @@
# include <string.h>
# include <signal.h>
# include <unistd.h>
+# include <stdlib.h>
#endif
#include <pcap.h>
@@ -290,7 +291,7 @@
char ebuf[PCAP_ERRBUF_SIZE];
int ret = -1;
- mktemp(path);
+ mkstemp(path);
if ((f = fopen(path, "w")) != NULL) {
hdr.magic = 0xa1b2c3d4;
hdr.version_major = PCAP_VERSION_MAJOR;