9b849b2bf6
- license changed to GPLv3+ - fixed #477288 (libcdio-devel multilib conflict) - applied patch to fix endless loop in mock
14 lines
576 B
Diff
14 lines
576 B
Diff
diff --git a/lib/driver/gnu_linux.c b/lib/driver/gnu_linux.c
|
|
index 7e2f3c4..092af0d 100644
|
|
--- a/lib/driver/gnu_linux.c
|
|
+++ b/lib/driver/gnu_linux.c
|
|
@@ -1448,7 +1448,7 @@ cdio_get_default_device_linux(void)
|
|
/* Scan the system for CD-ROM drives.
|
|
Not always 100% reliable, so use the USE_MNTENT code above first.
|
|
*/
|
|
- for ( i=0; checklist2[i].format; ++i ) {
|
|
+ for ( i=0; i < checklist2_size; ++i ) {
|
|
unsigned int j;
|
|
for ( j=checklist2[i].num_min; j<=checklist2[i].num_max; ++j ) {
|
|
if (snprintf(drive, sizeof(drive), checklist2[i].format, j) < 0)
|