git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 19, 2022, 18:24 UTC
Message-ID
<xmqq8roparkd.fsf@gitster.g>
In-Reply-To
<pull.1293.git.1658251503775.gitgitgadget@gmail.com>

"Lessley Dennington via GitGitGadget" <gitgitgadget@gmail.com> writes:

Show 8 quoted lines
> From: Lessley Dennington <lessleydennington@gmail.com>
>
> 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>
> ---
Perfect.  Thanks.  Will queue.
Show 11 quoted lines
> @@ -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
Previous: Derrick StoleeNext: Glen Choo
Message 3 of 4 in “osx-keychain: fix compiler warning”
  1. osx-keychain: fix compiler warningLessley Dennington via GitGitGadget, Jul 19, 2022
  2. Derrick StoleeJul 19, 2022
  3. Junio C HamanoJul 19, 2022
  4. Glen ChooJul 19, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.