From bf6898262b2ae6dd50628c94262523865d100659 Mon Sep 17 00:00:00 2001 From: Niels Grewe Date: Tue, 8 Sep 2015 07:13:54 +0000 Subject: [PATCH] Fix a bug writing base64 data to a plist git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38973 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSPropertyList.m | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 13047d535..815804464 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-09-08 Niels Grewe + + * Source/NSPropertyList.m: Fix writing base64 data. + 2015-09-04 Niels Grewe * Source/GSString.m: Optimisation for formatting strings that are stored as diff --git a/Source/NSPropertyList.m b/Source/NSPropertyList.m index c5d0d8594..798821dcd 100644 --- a/Source/NSPropertyList.m +++ b/Source/NSPropertyList.m @@ -1487,7 +1487,7 @@ encodeBase64(NSData *source, NSMutableData *dest) [dest setLength: base + destlen]; GSPrivateEncodeBase64((const uint8_t*)[source bytes], - length, (uint8_t*)[dest mutableBytes]); + length, (uint8_t*)[dest mutableBytes] + base); } }