From 85912b06734286108d0ec33f0479677e2fce252d Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 5 Oct 2005 17:52:12 +0200 Subject: [PATCH] [PATCH] Fix symbolic ref validation Use the correct buffer when validating 'ref: refs/...' Signed-off-by: Jonas Fonseca Signed-off-by: Junio C Hamano --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refs.c b/refs.c index 2aac90ca..5a8cbd4e 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; } -- 2.11.0