Skip to content

Commit 577314c

Browse files
Denton-Lgitster
authored andcommitted
midx.c: convert FLEX_ALLOC_MEM to FLEX_ALLOC_STR
Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 041f5ea commit 577314c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

midx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct multi_pack_index *load_multi_pack_index(const char *object_dir, int local
7070

7171
midx_map = xmmap(NULL, midx_size, PROT_READ, MAP_PRIVATE, fd, 0);
7272

73-
FLEX_ALLOC_MEM(m, object_dir, object_dir, strlen(object_dir));
73+
FLEX_ALLOC_STR(m, object_dir, object_dir);
7474
m->fd = fd;
7575
m->data = midx_map;
7676
m->data_len = midx_size;

0 commit comments

Comments
 (0)