mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Patched from mail. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@627 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d82d74df60
commit
1edc8b38e0
13 changed files with 407 additions and 18 deletions
|
@ -173,7 +173,7 @@ static Class NSMutableString_c_concrete_class;
|
|||
OBJC_MALLOC(s, char, length+1);
|
||||
memcpy(s, byteString, length);
|
||||
s[length] = '\0';
|
||||
return [self initWithCStringNoCopy:s length:length freeWhenDone:NO];
|
||||
return [self initWithCStringNoCopy:s length:length freeWhenDone:YES];
|
||||
}
|
||||
|
||||
/* This is the designated initializer for CStrings. */
|
||||
|
@ -469,7 +469,7 @@ static Class NSMutableString_c_concrete_class;
|
|||
options: (unsigned int)mask
|
||||
{
|
||||
return [self compare:aString options:mask
|
||||
range:((NSRange){0, [self length]})];
|
||||
range:((NSRange){0, MAX([self length], [aString length])})];
|
||||
}
|
||||
|
||||
- (NSComparisonResult) compare: (NSString*)aString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue