Tidy last NSArray change with minor performance tweak, apply bugfix for code

attempting to deal with minor problems in mime data being parsed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18336 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-01-08 08:07:29 +00:00
parent 35c9435122
commit a11526b4f8
3 changed files with 30 additions and 18 deletions

View file

@ -1245,7 +1245,7 @@ wordData(NSString *word)
if (flags.wantEndOfLine == 1)
{
result = [self parse: [NSData dataWithBytes: @"\r\n" length: 2]];
result = [self parse: [NSData dataWithBytes: "\r\n" length: 2]];
}
else if (flags.inBody == 1)
{
@ -1257,7 +1257,7 @@ wordData(NSString *word)
* If still parsing headers, add CR-LF sequences to terminate
* the headers.
*/
result = [self parse: [NSData dataWithBytes: @"\r\n\r\n" length: 4]];
result = [self parse: [NSData dataWithBytes: "\r\n\r\n" length: 4]];
}
flags.wantEndOfLine = 0;
flags.inBody = 0;