diff options
Diffstat (limited to 'net-analyzer/ndsad/files/ndsad-1.33-strncpy-overflow.patch')
-rw-r--r-- | net-analyzer/ndsad/files/ndsad-1.33-strncpy-overflow.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net-analyzer/ndsad/files/ndsad-1.33-strncpy-overflow.patch b/net-analyzer/ndsad/files/ndsad-1.33-strncpy-overflow.patch new file mode 100644 index 000000000000..5078f1555ec6 --- /dev/null +++ b/net-analyzer/ndsad/files/ndsad-1.33-strncpy-overflow.patch @@ -0,0 +1,12 @@ +--- 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 |