commit | 577314caae2635986aa30a83ed956c8741d27ffb | [log] [tgz] |
---|---|---|
author | Denton Liu <liu.denton@gmail.com> | Wed Apr 03 15:00:05 2019 -0700 |
committer | Junio C Hamano <gitster@pobox.com> | Thu Apr 04 18:22:27 2019 +0900 |
tree | 22b9d3e61ac959c2e15ede8a854ea73bed7af81e | |
parent | 041f5ea1cf987a4068ef5f39ba0a09be85952064 [diff] |
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>
diff --git a/midx.c b/midx.c index 8a505fd..cb81903 100644 --- a/midx.c +++ b/midx.c
@@ -70,7 +70,7 @@ 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;