From db80a915aa34a40612c46032a1a7593079aa1f0a Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 25 Oct 2009 21:31:01 +0000 Subject: [PATCH] we should use the size of the array that we're actually using --- macosx/MessageWindowController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 1d7ca2ec4..07632bb3e 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -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]];