[xiph-commits] r6903 - trunk/paranoia-III/interface

pjones at dactyl.lonelymoon.com pjones
Sun Jun 27 11:53:00 PDT 2004


Author: pjones
Date: Sun Jun 27 11:53:00 2004
New Revision: 6903

Modified:
trunk/paranoia-III/interface/scan_devices.c
Log:
null buffer check from debian's patches


Modified: trunk/paranoia-III/interface/scan_devices.c
===================================================================
--- trunk/paranoia-III/interface/scan_devices.c	2004-06-27 18:47:59 UTC (rev 6902)
+++ trunk/paranoia-III/interface/scan_devices.c	2004-06-27 18:52:59 UTC (rev 6903)
@@ -644,7 +644,8 @@

/* It would seem some TOSHIBA CDROMs gets things wrong */

-  if (!strncmp (p + 8, "TOSHIBA", 7) &&
+  if (p &&
+      !strncmp (p + 8, "TOSHIBA", 7) &&
!strncmp (p + 16, "CD-ROM", 6) &&
p[0] == TYPE_DISK) {
p[0] = TYPE_ROM;



More information about the commits mailing list