diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-04-28 01:09:25 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-04-28 01:09:25 +0000 |
commit | b9ba7aeb165cffecdffb60aec8c3fa8d590d9ca9 (patch) | |
tree | 42d07b0c7246ae2536a702e7c5de9e2732341116 /fs/proc/proc_tty.c | |
parent | 7406b0a326f2d70ade2671c37d1beef62249db97 (diff) |
Merge with 2.3.99-pre6.
Diffstat (limited to 'fs/proc/proc_tty.c')
-rw-r--r-- | fs/proc/proc_tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c index e241c938e..1d55d4989 100644 --- a/fs/proc/proc_tty.c +++ b/fs/proc/proc_tty.c @@ -93,7 +93,7 @@ static int tty_drivers_read_proc(char *page, char **start, off_t off, *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 @@ static int tty_ldiscs_read_proc(char *page, char **start, off_t off, *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); } |