diff options
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index 0f8ccd33b..e80da04c7 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -133,12 +133,11 @@ static size_t convert_lineends(struct SessionHandle *data, *outPtr = *inPtr; } outPtr++; - inPtr++; } - if(outPtr < startPtr+size) { + if(outPtr < startPtr+size) /* tidy up by null terminating the now shorter data */ *outPtr = '\0'; - } + return(outPtr - startPtr); } return(size); |