mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
reduce dependecy on libxml2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28263 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9faaf05aff
commit
d28ec5d0c3
5 changed files with 25 additions and 267 deletions
|
@ -2901,6 +2901,7 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
|||
{
|
||||
unsigned diff = input - lineEnd;
|
||||
|
||||
bytes[input] = ' ';
|
||||
memmove(&bytes[lineStart + diff], &bytes[lineStart], length);
|
||||
lineStart += diff;
|
||||
lineEnd += diff;
|
||||
|
@ -3347,7 +3348,7 @@ appendBytes(NSMutableData *m, unsigned offset, unsigned fold,
|
|||
* If we already have space at the end of the line,
|
||||
* we remove it because the wrapping counts as a space.
|
||||
*/
|
||||
if (len > 0 && ((unsigned char*)[m bytes])[len - 1] == ' ')
|
||||
if (len > 0 && isspace(((unsigned char*)[m bytes])[len - 1]))
|
||||
{
|
||||
[m setLength: --len];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue