Fix typo causing preamature termination of long headers

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40065 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-08-28 09:53:38 +00:00
parent c6ead1b23b
commit ead1505a3c
3 changed files with 12 additions and 1 deletions

View file

@ -4103,7 +4103,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
*/
[m appendBytes: ptr + pos length: next - pos];
offset += next - pos;
pos += next;
pos = next;
if (pos < len)
{
/* We have more text to output, so fold the line.