diff options
| author | Ian Dowse <iedowse@FreeBSD.org> | 2003-06-16 20:48:56 +0000 |
|---|---|---|
| committer | Ian Dowse <iedowse@FreeBSD.org> | 2003-06-16 20:48:56 +0000 |
| commit | c83b0b621f165738fb91870c3adfd876702fb106 (patch) | |
| tree | d70f18397a994ee34cca49455e4927a7feac8c46 | |
| parent | a97024f7c64949aa4145a34d8b96a2cab1a3dbce (diff) | |
Notes
| -rw-r--r-- | sys/boot/i386/libi386/pxe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c index 6e01a2834b68..68081df584b5 100644 --- a/sys/boot/i386/libi386/pxe.c +++ b/sys/boot/i386/libi386/pxe.c @@ -286,10 +286,10 @@ pxe_open(struct open_file *f, ...) if (!rootpath[1]) strcpy(rootpath, PXENFSROOTPATH); - for (i = 0; i < FNAME_SIZE; i++) + for (i = 0; rootpath[i] != '\0' && i < FNAME_SIZE; i++) if (rootpath[i] == ':') break; - if (i && i != FNAME_SIZE) { + if (i && i != FNAME_SIZE && rootpath[i] == ':') { rootpath[i++] = '\0'; if (inet_addr(&rootpath[0]) != INADDR_NONE) rootip.s_addr = inet_addr(&rootpath[0]); |
