patch-2.2.16 linux/fs/proc/proc_tty.c
Next file: linux/fs/read_write.c
Previous file: linux/fs/proc/generic.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Jun 7 14:26:44 2000
- Orig file:
v2.2.15/linux/fs/proc/proc_tty.c
- Orig date:
Tue Aug 4 10:57:13 1998
diff -urN v2.2.15/linux/fs/proc/proc_tty.c linux/fs/proc/proc_tty.c
@@ -93,7 +93,7 @@
*eof = 1;
if (off >= len+begin)
return 0;
- *start = page + (begin-off);
+ *start = page + (off-begin);
return ((count < begin+len-off) ? count : begin+len-off);
}
@@ -123,7 +123,7 @@
*eof = 1;
if (off >= len+begin)
return 0;
- *start = page + (begin-off);
+ *start = page + (off-begin);
return ((count < begin+len-off) ? count : begin+len-off);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)