diff options
author | Florian Pritz <bluewind@xinu.at> | 2022-05-01 11:08:26 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2022-05-01 11:08:26 +0200 |
commit | 4f1bc7f9aa57da2ca84b475d472e23e22cc41e95 (patch) | |
tree | 37e7aec5ddc583047da1126ffdc41a81f20cf1f6 /ui-patch.c | |
parent | 2cbdd90e0f8575eda6486b4bb06521d848eaa307 (diff) | |
parent | 5258c297ba6fb604ae1415fbc19a3fe42457e49e (diff) | |
download | cgit-local.tar.gz cgit-local.tar.xz |
Diffstat (limited to 'ui-patch.c')
-rw-r--r-- | ui-patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, } if (is_null_oid(&old_rev_oid)) { - memcpy(rev_range, oid_to_hex(&new_rev_oid), GIT_SHA1_HEXSZ + 1); + memcpy(rev_range, oid_to_hex(&new_rev_oid), the_hash_algo->hexsz + 1); } else { xsnprintf(rev_range, REV_RANGE_LEN, "%s..%s", oid_to_hex(&old_rev_oid), oid_to_hex(&new_rev_oid)); |