Skip to content
Snippets Groups Projects
Commit 65f04bcc authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard
Browse files

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

parent 9156e124
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,7 @@ static struct if_entry *add_entry( DWORD index, char *name )
struct if_entry *entry;
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) );
if (!entry) return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment