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