summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw/common/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/ofw/common/main.c')
-rw-r--r--sys/boot/ofw/common/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/common/main.c b/sys/boot/ofw/common/main.c
index 52e69199..940ca63 100644
--- a/sys/boot/ofw/common/main.c
+++ b/sys/boot/ofw/common/main.c
@@ -133,7 +133,7 @@ main(int (*openfirm)(void *))
printf("Memory: %lldKB\n", memsize() / 1024);
OF_getprop(chosen, "bootpath", bootpath, 64);
- ch = index(bootpath, ':');
+ ch = strchr(bootpath, ':');
*ch = '\0';
printf("Booted from: %s\n", bootpath);
OpenPOWER on IntegriCloud