mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 04:37:06 -08:00
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
20 lines
379 B
Diff
20 lines
379 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>
|
|
@@ -300,7 +300,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;
|