You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/ndsad/files/ndsad-1.33-strncpy-overflow...

13 lines
351 B

--- a/handlers.h
+++ b/handlers.h
@@ -30,7 +30,8 @@
#ifdef WIN32
#define IFN_SIZE 512 // on windows iface names are VEERY long
#else
-#define IFN_SIZE 32 // iface name size. As in linux/sockios.h
+#include <net/if.h>
+#define IFN_SIZE IFNAMSIZ // iface name size. As in linux/sockios.h
#endif
#define MPH_IFLIST 0x2 // iface type - for mempool