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 <lessleydennington@gmail.com> Acked-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Lessley Dennington committed
Jul 19, 2022 at 17:25 UTC
f2fc531585215d02a75a4d1ce7e6964e9eb21812
1 file changed
+1
-1
contrib/credential/osxkeychain/git-credential-osxkeychain.c
+1
-1
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 <get|store|erase>";
if (!argv[1])
- die(usage);
+ die("%s", usage);
read_credential();