threads / patch / 9921

patchFix lapsus in builtin-apply.c

Subject: [PATCH] Fix lapsus in builtin-apply.c

## tl;dr

One message between Sep 18, 2007 and Sep 18, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Pierre Habouzit· Sep 18, 2007, 10:12 UTC · lore
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(-)
Show changes to builtin-apply.c +1 −1
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

← back to recent threads