projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6e548d
)
[PATCH] Fix symbolic ref validation
author
Jonas Fonseca
<fonseca@diku.dk>
Wed, 5 Oct 2005 15:52:12 +0000
(17:52 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 5 Oct 2005 17:50:59 +0000
(10:50 -0700)
Use the correct buffer when validating 'ref: refs/...'
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c
patch
|
blob
|
history
diff --git
a/refs.c
b/refs.c
index 2aac90ca54f3fe207d7b05dda56f0f04badf460e..5a8cbd4ef386da60d3f7a2cac4563fc993e38b94 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-46,7
+46,7
@@
int validate_symref(const char *path)
len -= 4;
while (len && isspace(*buf))
buf++, len--;
- if (len >= 5 && !memcmp("refs/", buf
fer
, 5))
+ if (len >= 5 && !memcmp("refs/", buf, 5))
return 0;
return -1;
}