Monotone-Parent: 8e81030e83aa6ed594c40a5f56274b5ba292f47c

Monotone-Revision: d61516dbee88e6bc6828689bf6efabde759a5a80

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-05-02T23:09:55
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2008-05-02 23:09:55 +00:00
parent 5c2c26e0db
commit 18f4470fed
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2008-05-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailPartViewers/UIxMailPartTextViewer.m (convertChars): do
not cast pointers to unsigned int to avoid problems with big
endian archs.
* SoObjects/Contacts/SOGoContactLDAPFolder.m ([-davNamespaces]):
removed method.

View File

@ -61,13 +61,13 @@ convertChars (const char *oldString, unsigned int oldLength,
iteration = 0;
upperLimit = oldString + oldLength;
while ((unsigned int) currentChar < (unsigned int) upperLimit)
while (currentChar < upperLimit)
{
if (*currentChar != '\r')
{
if (*currentChar == '\n')
{
length = (unsigned int) destChar - (unsigned int) newString;
length = destChar - newString;
if ((length + (6 * iteration) + 500) > maxLength)
{
maxLength = length + (iteration * 6) + 500;
@ -93,7 +93,7 @@ convertChars (const char *oldString, unsigned int oldLength,
currentChar++;
}
*destChar = 0;
*newLength = (unsigned int) destChar - (unsigned int) newString;
*newLength = destChar - newString;
return newString;
}