diff options
author | Xavier L <xavier.l@afrosoft.tk> | 2013-03-21 12:30:08 -0400 |
---|---|---|
committer | Xavier L <xavier.l@afrosoft.tk> | 2013-03-21 12:30:08 -0400 |
commit | 1e7b7523753a144597bff4a5a05f6e7c7e90c40e (patch) | |
tree | 46d673a9a6c6a61aacf7fce3f29cceea44e0ea73 /src/oid.c | |
parent | 7e527ca700cbc98f9cd6acb52dc7b6180b3bcc35 (diff) | |
download | libgit2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |