summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-26 02:51:56 +0000
committerBill Nottingham <notting@redhat.com>1999-07-26 02:51:56 +0000
commitd68f1f4da21a64be6e03185a00128507b1346457 (patch)
treecad6750a173d797efc904fe1b0d0d1189bad2adc /loader
parentd6fa7144d72cbda152b1ab03fff21ac93f0df3e8 (diff)
downloadanaconda-d68f1f4da21a64be6e03185a00128507b1346457.tar.gz
anaconda-d68f1f4da21a64be6e03185a00128507b1346457.tar.xz
anaconda-d68f1f4da21a64be6e03185a00128507b1346457.zip
hey ewt, vendor strings can be null. ;)
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c13
1 files changed, 9 insertions, 4 deletions
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) {