mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 10:25:27 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user