diff options
| -rwxr-xr-x | macosx/main.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/main.m b/macosx/main.m index ab1707fa..a65bcd1d 100755 --- a/macosx/main.m +++ b/macosx/main.m @@ -143,7 +143,7 @@ static void AddStringToLogList(const char *themsg) }); [theStr appendString:@(themsg)]; while ((newlineRange = [theStr rangeOfString:@"\n"]).location != NSNotFound) { - NSString *tmpStr = [theStr substringFromIndex:newlineRange.location]; + NSString *tmpStr = [theStr substringToIndex:newlineRange.location]; if (tmpStr && ![tmpStr isEqualToString:@""]) { NSLog(@"%@", tmpStr); } |
