diff options
-rwxr-xr-x | zaptel.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -571,6 +571,11 @@ static int zaptel_proc_read(char *page, char **start, off_t off, int count, int } } } + if ( len <= off ) /* If everything printed so far is before beginning of request */ + { + off -= len; + len = 0; + } *start = page + off; return len; } |