From bb4e35bd1e651c6419cec8e2358f937b60ded57d Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 30 Sep 2009 00:11:24 +0000 Subject: [PATCH] fix a glitch with using the same address more than once in the tracker removal code --- macosx/InfoWindowController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 993e5cd90..6876127bb 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -1719,8 +1719,9 @@ typedef enum id item = [fTrackers objectAtIndex: i]; if ([item isKindOfClass: [NSNumber class]]) { - for (NSInteger j = i+1; j < [fTrackers count] && ![[fTrackers objectAtIndex: j] isKindOfClass: [NSNumber class]]; ++j, ++i) - [addresses addObject: [fTrackers objectAtIndex: j]]; + ++i; + for (NSInteger j = i; j < [fTrackers count] && ![[fTrackers objectAtIndex: j] isKindOfClass: [NSNumber class]]; ++j, ++i) + [addresses addObject: [[fTrackers objectAtIndex: j] fullAnnounceAddress]]; --i; } else