@matheusbsbs / matheus-bagliano / commits / 85912b0673
Fork 0

[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>

Jonas Fonseca committed Oct 5, 2005 at 17:52 UTC 85912b06734286108d0ec33f0479677e2fce252d
1 file changed +1 -1
refs.c
+1 -1
@@ -46,7 +46,7 @@ int validate_symref(const char *path)
46 len -= 4;
47 while (len && isspace(*buf))
48 buf++, len--;
49 - if (len >= 5 && !memcmp("refs/", buffer, 5))
49 + if (len >= 5 && !memcmp("refs/", buf, 5))
50 return 0;
51 return -1;
52 }