Skip to content

Commit

Permalink
%s is deliberate in this format string
Browse files Browse the repository at this point in the history
Fixes #1053
  • Loading branch information
kornelski committed Mar 24, 2017
1 parent 405c9fd commit 4bc2e6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sparkle/SUFileManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ - (BOOL)_authorizeAndExecuteCommand:(char *)command sourcePath:(char *)sourcePat
if (runStatus != errAuthorizationSuccess) {
#pragma clang diagnostic pop
if (error != NULL) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcstring-format-directive"
*error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Failed to run authorization tool %s (%d).", toolPath, (int)runStatus] }];
#pragma clang diagnostic pop
}
return NO;
}
Expand Down

0 comments on commit 4bc2e6e

Please sign in to comment.