we should use the size of the array that we're actually using

This commit is contained in:
Mitchell Livingston 2009-10-25 21:31:01 +00:00
parent 7eed54904a
commit db80a915aa
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@
if (code == NSOKButton)
{
//create the text to output
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [fMessages count]];
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [messages count]];
for (NSDictionary * message in messages)
[messageStrings addObject: [self stringForMessage: message]];