Skip to content

Commit 6dd0a37

Browse files
committed
Merge branch 'jk/tighten-alloc'
* jk/tighten-alloc: compat/mingw: brown paper bag fix for 50a6c8e
2 parents 49a4352 + 8d5b332 commit 6dd0a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
10691069
free(quoted);
10701070
}
10711071

1072-
wargs = xmalloc_array(st_add(st_mult(2, args.len), 1), sizeof(wchar_t));
1072+
ALLOC_ARRAY(wargs, st_add(st_mult(2, args.len), 1));
10731073
xutftowcs(wargs, args.buf, 2 * args.len + 1);
10741074
strbuf_release(&args);
10751075

0 commit comments

Comments
 (0)