Monotone-Parent: 94ff9caef87cde7157655b9f398a4481c6bf5b72

Monotone-Revision: 93bb2c6945d08d009e60e0b6280976b86b0b0aaf

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-06-03T23:06:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-06-03 23:06:52 +00:00
parent 7737073752
commit 459ab3484e
12 changed files with 57 additions and 39 deletions
+3 -3
View File
@@ -55,7 +55,7 @@ convertChars (const char *oldString, unsigned int oldLength,
unsigned int length, maxLength;
maxLength = oldLength + paddingBuffer;
newString = malloc (maxLength + 1);
newString = NSZoneMalloc (NULL, maxLength + 1);
destChar = newString;
currentChar = oldString;
@@ -72,7 +72,7 @@ convertChars (const char *oldString, unsigned int oldLength,
if (length + paddingBuffer > maxLength - 6)
{
maxLength += paddingBuffer;
reallocated = realloc (newString, maxLength + 1);
reallocated = NSZoneRealloc (NULL, newString, maxLength + 1);
if (reallocated)
{
newString = reallocated;
@@ -112,7 +112,7 @@ convertChars (const char *oldString, unsigned int oldLength,
length: newLength
encoding: NSUTF8StringEncoding];
[convertedString autorelease];
free (newString);
NSZoneFree (NULL, newString);
return convertedString;
}