diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-04-03 15:00:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-04 18:22:27 +0900 |
commit | 577314caae2635986aa30a83ed956c8741d27ffb (patch) | |
tree | 22b9d3e61ac959c2e15ede8a854ea73bed7af81e | |
parent | The third batch (diff) | |
download | tgif-577314caae2635986aa30a83ed956c8741d27ffb.tar.xz |
midx.c: convert FLEX_ALLOC_MEM to FLEX_ALLOC_STR
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | midx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ struct multi_pack_index *load_multi_pack_index(const char *object_dir, int local midx_map = xmmap(NULL, midx_size, PROT_READ, MAP_PRIVATE, fd, 0); - FLEX_ALLOC_MEM(m, object_dir, object_dir, strlen(object_dir)); + FLEX_ALLOC_STR(m, object_dir, object_dir); m->fd = fd; m->data = midx_map; m->data_len = midx_size; |