diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-06-10 21:26:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-06-10 21:26:11 +0000 |
commit | 352177090f710fd155d22a79d11f621482c09640 (patch) | |
tree | 1c9fea76d87460c04bd7946db2f84534bb8c1f11 /lib/sendf.c | |
parent | 9d18c0b15658adcdb6743107be0db4745d2b8073 (diff) | |
download | curl-352177090f710fd155d22a79d11f621482c09640.tar.gz |
- Fabian Keil ran clang on the (lib)curl code, found a bunch of warnings and
contributed a range of patches to fix them.
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); |