mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fixed coding/decoding error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3101 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b0256081a6
commit
317b23fbb6
1 changed files with 2 additions and 3 deletions
|
@ -651,13 +651,12 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
|
|||
{
|
||||
unsigned cap;
|
||||
|
||||
[aCoder decodeValueOfObjCType:@encode(unsigned) at:&cap withName:NULL];
|
||||
[aCoder decodeValueOfObjCType:@encode(unsigned) at:&cap];
|
||||
[self initWithCapacity:cap];
|
||||
_count = cap;
|
||||
[aCoder decodeArrayOfObjCType:@encode(unsigned char)
|
||||
count:_count
|
||||
at:_contents_chars
|
||||
withName:NULL];
|
||||
at:_contents_chars];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue