Skip to content

Commit

Permalink
Merge pull request #59 from gawadrian/off_by_one_error
Browse files Browse the repository at this point in the history
Fixed off-by-one error
  • Loading branch information
maciekish committed Aug 4, 2015
2 parents c2567c5 + 18584a9 commit ed0bc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iReSign/iReSign/iReSignAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ - (void)checkProvisioning:(NSTimer *)timer {
NSArray* embeddedProvisioningLines = [embeddedProvisioning componentsSeparatedByCharactersInSet:
[NSCharacterSet newlineCharacterSet]];

for (int i = 0; i <= [embeddedProvisioningLines count]; i++) {
for (int i = 0; i < [embeddedProvisioningLines count]; i++) {
if ([[embeddedProvisioningLines objectAtIndex:i] rangeOfString:@"application-identifier"].location != NSNotFound) {

NSInteger fromPosition = [[embeddedProvisioningLines objectAtIndex:i+1] rangeOfString:@"<string>"].location + 8;
Expand Down

0 comments on commit ed0bc5e

Please sign in to comment.