patch-2.2.11 linux/drivers/cdrom/cdrom.c
Next file: linux/drivers/char/Config.in
Previous file: linux/drivers/block/smart1,2.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Aug 9 12:04:39 1999
- Orig file:
v2.2.10/linux/drivers/cdrom/cdrom.c
- Orig date:
Thu Apr 29 11:53:41 1999
diff -u --recursive --new-file v2.2.10/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
@@ -1145,8 +1145,10 @@
((cdi->ops->capability & ~cdi->mask & CDC_PLAY_AUDIO)!=0));
strcpy(cdrom_drive_info+pos,"\n\n");
- *lenp=pos+3;
-
+ pos += 3;
+ if (*lenp > pos)
+ *lenp = pos;
+
return proc_dostring(ctl, write, filp, buffer, lenp);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)