summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xzaptel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zaptel.c b/zaptel.c
index ac85f01..c5353b9 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -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;
}