summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-23 02:00:47 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-23 02:00:47 +0000
commit06615f62b17d7de6e12d2f5ec6b88cf30af08413 (patch)
tree8766f208847d4876a6db619aebbf54d53b76eb44 /drivers/scsi/sg.c
parentfa9bdb574f4febb751848a685d9a9017e04e1d53 (diff)
Merge with Linux 2.4.0-test10.
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r--drivers/scsi/sg.c2
1 files changed, 1 insertions, 1 deletions
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;