mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
fix boundary
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33219 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a21c1b4e17
commit
09f50b3388
1 changed files with 2 additions and 2 deletions
|
@ -5488,8 +5488,8 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
||||||
length = encodebase64([md mutableBytes], output, 20);
|
length = encodebase64([md mutableBytes], output, 20);
|
||||||
[md setLength: length + 2];
|
[md setLength: length + 2];
|
||||||
ptr = (unsigned char*)[md mutableBytes];
|
ptr = (unsigned char*)[md mutableBytes];
|
||||||
ptr[length-2] = '=';
|
ptr[length] = '=';
|
||||||
ptr[length-1] = '_';
|
ptr[length+1] = '_';
|
||||||
result = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
result = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
||||||
result = [result initWithData: md encoding: NSASCIIStringEncoding];
|
result = [result initWithData: md encoding: NSASCIIStringEncoding];
|
||||||
RELEASE(md);
|
RELEASE(md);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue