Previous | 199869 Revisions | Next |
r23980 Friday 28th June, 2013 at 01:51:02 UTC by R. Belmont |
---|
Don't crash if pcap can't find a network interface's name [Richard L. Hamilton] |
[src/osd] | osdnet.c |
r23979 | r23980 | |
---|---|---|
9 | 9 | entry->id = netdev_list.count(); |
10 | 10 | strncpy(entry->name, name, 255); |
11 | 11 | entry->name[255] = '\0'; |
12 | strncpy(entry->description, description, 255); | |
12 | strncpy(entry->description, (description != NULL) ? description : "(no name)", 255); | |
13 | 13 | entry->description[255] = '\0'; |
14 | 14 | entry->func = func; |
15 | 15 | netdev_list.append(*entry); |
Previous | 199869 Revisions | Next |