summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buf_misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/buf_misc.c b/buf_misc.c
index 5fbcd63..d3c540e 100644
--- a/buf_misc.c
+++ b/buf_misc.c
@@ -94,7 +94,8 @@ int BufLine::pop_line(char **val, int *size)
int idx;
if (1 == buf->findc('\n',&idx))
{
- buf->popsubstring(idx+1,val,size);
+ buf->popsubstring(idx,val,size);
+ buf->shiftleft(1);//remove seperator character
return 0;
}
return -1;