Monotone-Parent: d9f13a2035f812bf584e6ed63e858a9373cd11c8

Monotone-Revision: 38edb6b526df653889b897cf6ff9643dfd3ffad2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-10T17:35:01
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-01-10 17:35:01 +00:00
parent 22c803dda4
commit 85effb2512
2 changed files with 6 additions and 1 deletions

View File

@@ -848,7 +848,7 @@ _parseCOPYUID (NSString *line, NSArray **destUIDsP)
/* sample: 1 OK [COPYUID 1311899334 1:3 11:13] Completed */
max = [line length];
uniString = NSZoneMalloc (NULL, max * sizeof (unichar) + 1);
uniString = NSZoneMalloc (NULL, sizeof (unichar) * (max + 1));
[line getCharacters: uniString];
uniString[max] = 0;