osx-keychain: fix compiler warning
PATCH 1/1 osx-keychain: fix compiler warning
From: Lessley Dennington <[email protected]>
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.
---
osx-keychain: fix compiler warning
Running make in contrib/credential/osxkeychain currently shows the following warning:
warning: format string is not a string literal (potentially insecure)
This small change to treat the string as an argument fixes the issue.
Thanks, Lessley
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1293%2Fldennington%2Ffix-osx-keychain-warning-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1293/ldennington/fix-osx-keychain-warning-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1293
contrib/credential/osxkeychain/git-credential-osxkeychain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/credential/osxkeychain/git-credential-osxkeychain.c +1 -1
@@ -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 ();
base-commit: 71a8fab31b70c417e8f5b5f716581f89955a7082
Signature · 1 line
gitgitgadget
contrib/credential/osxkeychain/git-credential-osxkeychain.c int main(int argc, const char **argv) · line 171
Quoted 9 lines · Lessley Dennington via GitGitGadget
From: Lessley Dennington <[email protected]>
Update
git-credential-osxkeychain.cto remove 'format string is not a string literal (potentially insecure)' compiler warning by treating the string as an argument.contrib/credential/osxkeychain/git-credential-osxkeychain.c +1
-1if (!argv[1 ]) -die (usage); +die ("%s" , usage);
Thanks for preparing this for upstream. I reviewed this change as we were doing related things in the microsoft/git fork. LGTM here, too.
Thanks,
-Stolee
"Lessley Dennington via GitGitGadget" <[email protected]>
Quoted 8 lines · writes:
From: Lessley Dennington <[email protected]>
Update
git-credential-osxkeychain.cto remove 'format string is not a string literal (potentially insecure)' compiler warning by treating the string as an argument.Signed-off-by Lessley Dennington <[email protected]>---
Perfect. Thanks. Will queue.
Quoted 11 lines
contrib/credential/osxkeychain/git-credential-osxkeychain.c +1
-1@@ -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 ();base-commit:
71a8fab31b70c417e8f5b5f716581f89955a7082
Quoted 10 lines · Lessley Dennington via GitGitGadget
From: Lessley Dennington <[email protected]>
Update
git-credential-osxkeychain.cto remove 'format string is not a string literal (potentially insecure)' compiler warning by treating the string as an argument.Signed-off-by Lessley Dennington <[email protected]>---
osx-keychain: fix compiler warning
Quoted 8 lines
Running make in contrib/credential/osxkeychain currently shows the following warning:
warning: format string is not a string literal (potentially insecure)
This small change to treat the string as an argument fixes the issue.
Thanks, Lessley
Thanks! I literally just ran into this warning, and it's been already fixed :)
Quoted 13 lines
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1293%2Fldennington%2Ffix-osx-keychain-warning-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1293/ldennington/fix-osx-keychain-warning-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1293contrib/credential/osxkeychain/git-credential-osxkeychain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)contrib/credential/osxkeychain/git-credential-osxkeychain.c +0
-0
contrib/credential/osxkeychain/git-credential-osxkeychain.c int main(int argc, const char **argv) · line 173
Quoted 7 lines
contrib/credential/osxkeychain/git-credential-osxkeychain.c +1
-1@@ -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 ();
Looks good!
Quoted 5 lines
base-commit:
71a8fab31b70c417e8f5b5f716581f89955a7082Signature · 1 line
gitgitgadget