diff options
author | Vicent Martà <vicent@github.com> | 2013-03-25 13:26:50 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-03-25 13:26:50 -0700 |
commit | 1f10747854f04d0ff0e582682613a7cc8a3bcbc8 (patch) | |
tree | 1696a17843f179b04634ba9b38eef236e1e07e02 /src | |
parent | c2ea65eec31bc3c2c406a6ad60691916779b23f2 (diff) | |
parent | b3c174835b016a6fa8f23923beddd0d8fa68f19b (diff) | |
download | libgit2-1f10747854f04d0ff0e582682613a7cc8a3bcbc8.tar.gz |
Merge pull request #1428 from xavier-l/nul-terminated-oid
Nul terminated oid
Diffstat (limited to 'src')
-rw-r--r-- | src/oid.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -51,6 +51,11 @@ int git_oid_fromstrn(git_oid *out, const char *str, size_t length) return 0; } +int git_oid_fromstrp(git_oid *out, const char *str) +{ + return git_oid_fromstrn(out, str, strlen(str)); +} + int git_oid_fromstr(git_oid *out, const char *str) { return git_oid_fromstrn(out, str, GIT_OID_HEXSZ); |