]> granicus.if.org Git - transmission/commitdiff
we should use the size of the array that we're actually using
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 25 Oct 2009 21:31:01 +0000 (21:31 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 25 Oct 2009 21:31:01 +0000 (21:31 +0000)
macosx/MessageWindowController.m

index 1d7ca2ec4d5fa8a82d13bc595c83962f463eaceb..07632bb3eed9801e0e9e5116826274d3a210c027 100644 (file)
     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]];