summaryrefslogtreecommitdiffstats
path: root/tailburst.c
diff options
context:
space:
mode:
Diffstat (limited to 'tailburst.c')
-rw-r--r--tailburst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tailburst.c b/tailburst.c
index da72e38..0021d65 100644
--- a/tailburst.c
+++ b/tailburst.c
@@ -44,7 +44,7 @@ ssize_t fdgetline(int fd, struct getline_states *line) {
line->next = str+1;
str[0] = '\0';
pr_debug("next already buffered, %p %p: %s\n", str, line->cur, line->cur);
- return nread;
+ return str - line->cur;
}
/* No such luck, move current to base and read what we can */