From 06615f62b17d7de6e12d2f5ec6b88cf30af08413 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 23 Nov 2000 02:00:47 +0000 Subject: Merge with Linux 2.4.0-test10. --- drivers/scsi/sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/scsi/sg.c') diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 6d5b92f1f..971783407 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -2578,7 +2578,7 @@ static int sg_proc_dressz_write(struct file * filp, const char * buffer, return -EACCES; num = (count < 10) ? count : 10; copy_from_user(buff, buffer, num); - buff[count] = '\0'; + buff[num] = '\0'; k = simple_strtoul(buff, 0, 10); if (k <= 1048576) { sg_big_buff = k; -- cgit v1.2.3