diff options
Diffstat (limited to 'buf_misc.c')
-rw-r--r-- | buf_misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |