From d68f1f4da21a64be6e03185a00128507b1346457 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 26 Jul 1999 02:51:56 +0000 Subject: hey ewt, vendor strings can be null. ;) --- loader/loader.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'loader') diff --git a/loader/loader.c b/loader/loader.c index 206e5e121..c37d5e375 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -424,10 +424,15 @@ int findScsiList(void) { } chptr--; - while (*chptr == ' ') chptr--; - *(chptr + 1) = '\0'; - - strcpy(linebuf, start); + while (*chptr == ' ' && *chptr != ':' ) chptr--; + if (*chptr == ':') { + chptr++; + *(chptr + 1) = '\0'; + strcpy(linebuf,"Unknown"); + } else { + *(chptr + 1) = '\0'; + strcpy(linebuf, start); + } *linebuf = toupper(*linebuf); chptr = linebuf + 1; while (*chptr) { -- cgit