Commit 65f04bcc authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

nsiproxy: Allow the name length to be IFNAMSIZ - 1.

parent 9156e124
...@@ -259,7 +259,7 @@ static struct if_entry *add_entry( DWORD index, char *name ) ...@@ -259,7 +259,7 @@ static struct if_entry *add_entry( DWORD index, char *name )
struct if_entry *entry; struct if_entry *entry;
int name_len = strlen( name ); int name_len = strlen( name );
if (name_len >= IFNAMSIZ - 1) return NULL; if (name_len >= sizeof(entry->if_unix_name)) return NULL;
entry = malloc( sizeof(*entry) ); entry = malloc( sizeof(*entry) );
if (!entry) return NULL; if (!entry) return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment