patch-2.3.99-pre6 linux/fs/proc/proc_tty.c
Next file: linux/fs/qnx4/inode.c
Previous file: linux/fs/proc/proc_misc.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Fri Apr 21 15:17:57 2000
-  Orig file: 
v2.3.99-pre5/linux/fs/proc/proc_tty.c
-  Orig date: 
Tue Dec  7 09:32:48 1999
diff -u --recursive --new-file v2.3.99-pre5/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)