summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-03-04 13:46:25 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-03-04 13:46:25 -0800
commit6dd0a37c34e79e38aa611fce10dd5609ccc7c39a (patch)
tree16398d48aa45249acc7ac9c338bbbe7f5bf4c57f /compat
parentMerge branch 'nd/i18n-2.8.0' (diff)
parentcompat/mingw: brown paper bag fix for 50a6c8e (diff)
downloadtgif-6dd0a37c34e79e38aa611fce10dd5609ccc7c39a.tar.xz
Merge branch 'jk/tighten-alloc'
* jk/tighten-alloc: compat/mingw: brown paper bag fix for 50a6c8e
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index cfedcf9656..54c82ecf20 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -1069,7 +1069,7 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
free(quoted);
}
- wargs = xmalloc_array(st_add(st_mult(2, args.len), 1), sizeof(wchar_t));
+ ALLOC_ARRAY(wargs, st_add(st_mult(2, args.len), 1));
xutftowcs(wargs, args.buf, 2 * args.len + 1);
strbuf_release(&args);