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

Re: [PATCH 1/4] enter_repo: do not modify input

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 4, 2011, 20:24 UTC
Message-ID
<7vipo4bj3f.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CABURp0rKRb+fZG5erKz08Dz+4d7mjoL842zbcA7uzZ8N5Qtn1Q@mail.gmail.com>
Phil Hord <phil.hord@gmail.com> writes:
Show 6 quoted lines
> diff --git a/daemon.c b/daemon.c
> index 4c8346d..9253192 100644
> --- a/daemon.c
> +++ b/daemon.c
> @@ -108,11 +108,11 @@ static void NORETURN daemon_die(const char *err,
> va_list params)
Corrupt and unappliable patch.
> -		if (path[0] == '~') {
> -			char *newpath = expand_user_path(path);
> +		strncpy(used_path, path, len); used_path[len] = 0 ;
Do not write two statements on a single line; extra SP before ';'.
Previous: Phil Hord
Message 2 of 2 in “enter_repo: do not modify input”
  1. 1/4 enter_repo: do not modify inputPhil Hord, Oct 4, 2011
  2. Junio C HamanoOct 4, 2011

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.