Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-show-branch: Fix off-by-one error.
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index 2aac90ca54f3fe207d7b05dda56f0f04badf460e..5a8cbd4ef386da60d3f7a2cac4563fc993e38b94 100644
(file)
--- 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/", buf
fer
, 5))
+ if (len >= 5 && !memcmp("refs/", buf, 5))
return 0;
return -1;
}