Monotone-Parent: 8e81030e83aa6ed594c40a5f56274b5ba292f47c
Monotone-Revision: d61516dbee88e6bc6828689bf6efabde759a5a80 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-05-02T23:09:55 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
5c2c26e0db
commit
18f4470fed
|
@ -1,5 +1,9 @@
|
||||||
2008-05-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
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]):
|
* SoObjects/Contacts/SOGoContactLDAPFolder.m ([-davNamespaces]):
|
||||||
removed method.
|
removed method.
|
||||||
|
|
||||||
|
|
|
@ -61,13 +61,13 @@ convertChars (const char *oldString, unsigned int oldLength,
|
||||||
iteration = 0;
|
iteration = 0;
|
||||||
|
|
||||||
upperLimit = oldString + oldLength;
|
upperLimit = oldString + oldLength;
|
||||||
while ((unsigned int) currentChar < (unsigned int) upperLimit)
|
while (currentChar < upperLimit)
|
||||||
{
|
{
|
||||||
if (*currentChar != '\r')
|
if (*currentChar != '\r')
|
||||||
{
|
{
|
||||||
if (*currentChar == '\n')
|
if (*currentChar == '\n')
|
||||||
{
|
{
|
||||||
length = (unsigned int) destChar - (unsigned int) newString;
|
length = destChar - newString;
|
||||||
if ((length + (6 * iteration) + 500) > maxLength)
|
if ((length + (6 * iteration) + 500) > maxLength)
|
||||||
{
|
{
|
||||||
maxLength = length + (iteration * 6) + 500;
|
maxLength = length + (iteration * 6) + 500;
|
||||||
|
@ -93,7 +93,7 @@ convertChars (const char *oldString, unsigned int oldLength,
|
||||||
currentChar++;
|
currentChar++;
|
||||||
}
|
}
|
||||||
*destChar = 0;
|
*destChar = 0;
|
||||||
*newLength = (unsigned int) destChar - (unsigned int) newString;
|
*newLength = destChar - newString;
|
||||||
|
|
||||||
return newString;
|
return newString;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue