aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2005-10-05 17:52:12 +0200
committerJunio C Hamano <junkio@cox.net>2005-10-05 10:50:59 -0700
commit85912b06734286108d0ec33f0479677e2fce252d (patch)
treed2ad4a8926b062930f55a7c5ee196869761de0b3
parentd6e548d61fa95b98e98b3c1e592a4d73aa308969 (diff)
downloadgit-85912b06734286108d0ec33f0479677e2fce252d.tar.gz
git-85912b06734286108d0ec33f0479677e2fce252d.tar.xz
[PATCH] Fix symbolic ref validation
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>
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 2aac90ca5..5a8cbd4ef 100644
--- 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/", buffer, 5))
+ if (len >= 5 && !memcmp("refs/", buf, 5))
return 0;
return -1;
}