summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2005-10-05 15:52:12 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-05 17:50:59 (GMT)
commit85912b06734286108d0ec33f0479677e2fce252d (patch)
treed2ad4a8926b062930f55a7c5ee196869761de0b3 /refs.c
parentd6e548d61fa95b98e98b3c1e592a4d73aa308969 (diff)
downloadgit-85912b06734286108d0ec33f0479677e2fce252d.zip
git-85912b06734286108d0ec33f0479677e2fce252d.tar.gz
git-85912b06734286108d0ec33f0479677e2fce252d.tar.bz2
[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>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 2aac90c..5a8cbd4 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;
}