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

[PATCH] Fix lapsus in builtin-apply.c

From
Pierre Habouzit <madcoder@debian.org>
Date
Sep 18, 2007, 10:12 UTC
Message-ID
<20070918101258.GA304@artemis.corp>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
---
  I found this issue trying to refactor the "quote" module. It's
definitely worth to push this in maint.
 builtin-apply.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-apply.c b/builtin-apply.c
index 05ce220..86d89a4 100644
--- a/builtin-apply.c
+++ b/builtin-apply.c
@@ -254,7 +254,7 @@ static char *find_name(const char *line, char *def, int p_value, int terminate)
 		if (name) {
 			char *cp = name;
 			while (p_value) {
-				cp = strchr(name, '/');
+				cp = strchr(cp, '/');
 				if (!cp)
 					break;
 				cp++;
-- 
1.5.3.1
Message 1 of 1 in “Fix lapsus in builtin-apply.c”
  1. Fix lapsus in builtin-apply.cPierre Habouzit, Sep 18, 2007

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.