Thread (1 message) 1 message, 1 author, 2022-07-19

Re: [PATCH] osx-keychain: fix compiler warning

From: Junio C Hamano <hidden>
Date: 2022-07-19 18:24:58

"Lessley Dennington via GitGitGadget" [off-list ref]
writes:
From: Lessley Dennington <redacted>

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 <redacted>
---
Perfect.  Thanks.  Will queue.
quoted hunk
@@ -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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help