From: Lessley Dennington Date: Tue, 19 Jul 2022 17:25:03 +0000 (+0000) Subject: osx-keychain: fix compiler warning X-Git-Tag: v2.37.2~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2fc531585215d02a75a4d1ce7e6964e9eb21812;p=thirdparty%2Fgit.git osx-keychain: fix compiler warning Update git-credential-osxkeychain.c to remove 'format string is not a string literal (potentially insecure)' compiler warning by treating the string as an argument. Signed-off-by: Lessley Dennington Acked-by: Derrick Stolee Signed-off-by: Junio C Hamano --- diff --git a/contrib/credential/osxkeychain/git-credential-osxkeychain.c b/contrib/credential/osxkeychain/git-credential-osxkeychain.c index 0b44a9b7cc..bf77748d60 100644 --- a/contrib/credential/osxkeychain/git-credential-osxkeychain.c +++ b/contrib/credential/osxkeychain/git-credential-osxkeychain.c @@ -168,7 +168,7 @@ int main(int argc, const char **argv) "usage: git credential-osxkeychain "; if (!argv[1]) - die(usage); + die("%s", usage); read_credential();