mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
git_oid_fromstrn already sets a maximum on the length of the string
This commit is contained in:
parent
7e527ca700
commit
1e7b752375
@ -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)
|
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)
|
int git_oid_fromstr(git_oid *out, const char *str)
|
||||||
|
Loading…
Reference in New Issue
Block a user