Permalink
Browse files

Do not use variable strings directly as format string.

  • Loading branch information...
1 parent 1f899d9 commit cbfdc8c854b53ec93d83c6431aad0b0f8fe767c3 @0-wiz-0 0-wiz-0 committed Jun 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/ThirdParty/RegexKitLite/RegexKitLite.m
@@ -891,7 +891,7 @@ static void rkl_handleDelayedAssert(id self, SEL _cmd, id exception) {
else {
id functionString = [exception objectForKey:@"function"], fileString = [exception objectForKey:@"file"], descriptionString = [exception objectForKey:@"description"], lineNumber = [exception objectForKey:@"line"];
NSCParameterAssert((functionString != NULL) && (fileString != NULL) && (descriptionString != NULL) && (lineNumber != NULL));
- [[NSAssertionHandler currentHandler] handleFailureInFunction:functionString file:fileString lineNumber:(NSInteger)[lineNumber longValue] description:descriptionString];
+ [[NSAssertionHandler currentHandler] handleFailureInFunction:functionString file:fileString lineNumber:(NSInteger)[lineNumber longValue] description:@"%@",descriptionString];
}
}
}

0 comments on commit cbfdc8c

Please sign in to comment.