Changeset 927d0c70c763dcf56e6f12ebe02a51688468a5c3 for src/rh-config.c
- Timestamp:
- 06/08/09 21:12:46 (3 years ago)
- Children:
- bae014d9f22e13f6115d53d154e6489f20ae00e4
- Parents:
- 5987af1b79b0c1fbd4aa9d30a53ec6879853ece3
- git-committer:
- Neutron Soutmun <neo.neutron@…> (06/08/09 21:12:46)
- Files:
-
- 1 modified
-
src/rh-config.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/rh-config.c
r2f0141c r927d0c7 370 370 { 371 371 iface = (struct interfaces *)runner->data; 372 if (strncmp(iface->dev_internal, inf_name, strlen(inf_name)) == 0) 372 if (iface->dev_internal && 373 strncmp(iface->dev_internal, inf_name, strlen(inf_name)) == 0) 373 374 { 374 375 // Already in the list … … 388 389 } 389 390 390 strncpy(item->dev_internal, inf_name, 32);391 s printf(item->dev_ifb, "ifb%d", ifb_ifno);391 strncpy(item->dev_internal, inf_name, sizeof (item->dev_internal)); 392 snprintf(item->dev_ifb, sizeof (item->dev_ifb), "ifb%d", ifb_ifno); 392 393 item->init = 0; 393 394 item->hit = 1; … … 411 412 { 412 413 iface = (struct interfaces *)runner->data; 413 if (strncmp (iface->dev_internal, inf_name, strlen (inf_name)) == 0) 414 if (iface->dev_internal && 415 strncmp (iface->dev_internal, inf_name, strlen (inf_name)) == 0) 414 416 { 415 417 iface->hit--;
