summaryrefslogtreecommitdiff
path: root/src/oid.c
diff options
context:
space:
mode:
authorXavier L <xavier.l@afrosoft.tk>2013-03-21 12:30:08 -0400
committerXavier L <xavier.l@afrosoft.tk>2013-03-21 12:30:08 -0400
commit1e7b7523753a144597bff4a5a05f6e7c7e90c40e (patch)
tree46d673a9a6c6a61aacf7fce3f29cceea44e0ea73 /src/oid.c
parent7e527ca700cbc98f9cd6acb52dc7b6180b3bcc35 (diff)
downloadlibgit2-1e7b7523753a144597bff4a5a05f6e7c7e90c40e.tar.gz
git_oid_fromstrn already sets a maximum on the length of the string
Diffstat (limited to 'src/oid.c')
-rw-r--r--src/oid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oid.c b/src/oid.c
index 0a0a814fe..1d994c362 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -53,7 +53,7 @@ int git_oid_fromstrn(git_oid *out, const char *str, size_t length)
int git_oid_fromstrp(git_oid *out, const char *str)
{
- return git_oid_fromstrn(out, str, min(strlen(str), GIT_OID_HEXSZ));
+ return git_oid_fromstrn(out, str, strlen(str));
}
int git_oid_fromstr(git_oid *out, const char *str)