diff options
Diffstat (limited to 'isys/probe.c')
-rw-r--r-- | isys/probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isys/probe.c b/isys/probe.c index 336b7dba2..69e334665 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -573,12 +573,12 @@ static int I2OGetDevices(struct knownDevices * devices) { start++; } ctl[i] = '\0'; - /* We don't want partitions just the disks ! */ if (i < 1) { free (buf); return 1; } - if ( !isdigit(ctl[i-2]) ){ + /* We don't want partitions just the disks ! */ + if ( !isdigit(ctl[i-1]) ){ if (!deviceKnown(devices, ctl)) { newDevice.name = strdup(ctl); newDevice.model = strdup("I2O Block Device"); |