mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
we should use the size of the array that we're actually using
This commit is contained in:
@@ -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]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user