diff options
Diffstat (limited to 'hardinfo2/arch')
| -rw-r--r-- | hardinfo2/arch/linux/common/storage.h | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h index cd3c3249..71c206cd 100644 --- a/hardinfo2/arch/linux/common/storage.h +++ b/hardinfo2/arch/linux/common/storage.h @@ -79,9 +79,13 @@ __scan_scsi_devices(void)  	    model = g_strdup_printf("%s %s", vendor, model + 7);  	} else if (!strncmp(buf, "Type:   ", 8)) { -	    char *p = strstr(buf, "ANSI SCSI revi"); +	    char *p;  	    gchar *type = NULL, *icon = NULL; +            if (!(p = strstr(buf, "ANSI SCSI revision"))) { +                p = strstr(buf, "ANSI  SCSI revision"); +            } +  	    if (p != NULL) {  		while (*(--p) == ' ');  		*(++p) = 0;  | 
