diff options
author | Jonas Fonseca <fonseca@diku.dk> | 2005-10-05 17:52:12 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-05 10:50:59 -0700 |
commit | 85912b06734286108d0ec33f0479677e2fce252d (patch) | |
tree | d2ad4a8926b062930f55a7c5ee196869761de0b3 | |
parent | d6e548d61fa95b98e98b3c1e592a4d73aa308969 (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |