From f2fc531585215d02a75a4d1ce7e6964e9eb21812 Mon Sep 17 00:00:00 2001 From: Lessley Dennington Date: Tue, 19 Jul 2022 17:25:03 +0000 Subject: [PATCH] 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 --- contrib/credential/osxkeychain/git-credential-osxkeychain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/credential/osxkeychain/git-credential-osxkeychain.c b/contrib/credential/osxkeychain/git-credential-osxkeychain.c index 0b44a9b7cc6..bf77748d602 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();