mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fix problems defineing types on ssystems where they already exist as
typedefs. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19401 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
91f76b73a5
commit
6dca288a19
6 changed files with 71 additions and 12 deletions
|
@ -2166,8 +2166,20 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
|||
}
|
||||
else
|
||||
{
|
||||
unsigned dLength = [d length];
|
||||
|
||||
if (expect > 0 && rawBodyLength > expect)
|
||||
{
|
||||
NSData *excess;
|
||||
|
||||
dLength -= (rawBodyLength - expect);
|
||||
rawBodyLength = expect;
|
||||
excess = [d subdataWithRange:
|
||||
NSMakeRange([d length] - dLength, dLength)];
|
||||
NSLog(@"Excess data ignored: %@", excess);
|
||||
}
|
||||
[self decodeData: d
|
||||
fromRange: NSMakeRange(0, [d length])
|
||||
fromRange: NSMakeRange(0, dLength)
|
||||
intoData: data
|
||||
withContext: context];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue