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

trunk/src/osd/osdnet.c
r23979r23980
99   entry->id = netdev_list.count();
1010   strncpy(entry->name, name, 255);
1111   entry->name[255] = '\0';
12   strncpy(entry->description, description, 255);
12   strncpy(entry->description, (description != NULL) ? description : "(no name)", 255);
1313   entry->description[255] = '\0';
1414   entry->func = func;
1515   netdev_list.append(*entry);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team