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:
richard 1998-10-22 10:03:52 +00:00
parent 4568fd4427
commit 07fa579ca3

View file

@ -651,13 +651,12 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
{ {
unsigned cap; unsigned cap;
[aCoder decodeValueOfObjCType:@encode(unsigned) at:&cap withName:NULL]; [aCoder decodeValueOfObjCType:@encode(unsigned) at:&cap];
[self initWithCapacity:cap]; [self initWithCapacity:cap];
_count = cap; _count = cap;
[aCoder decodeArrayOfObjCType:@encode(unsigned char) [aCoder decodeArrayOfObjCType:@encode(unsigned char)
count:_count count:_count
at:_contents_chars at:_contents_chars];
withName:NULL];
return self; return self;
} }