diff options
Diffstat (limited to 'sys/boot/ofw/libofw/ofw_net.c')
-rw-r--r-- | sys/boot/ofw/libofw/ofw_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_net.c b/sys/boot/ofw/libofw/ofw_net.c index 36600ef..691deda 100644 --- a/sys/boot/ofw/libofw/ofw_net.c +++ b/sys/boot/ofw/libofw/ofw_net.c @@ -185,7 +185,7 @@ ofwn_init(struct iodesc *desc, void *machdep_hint) int pathlen; pathlen = OF_getprop(chosen, "bootpath", path, 64); - if ((ch = index(path, ':')) != NULL) + if ((ch = strchr(path, ':')) != NULL) *ch = '\0'; netdev = OF_finddevice(path); #ifdef __sparc64__ |