Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
push: add shorthand for --force-with-lease branch creation
[gitweb.git]
/
compat
/
mingw.c
diff --git
a/compat/mingw.c
b/compat/mingw.c
index ae16d089ad234cd4d3486eb3406d985bb89d8d17..af56c1fe6116a448a0699ef3360e24e0ecbe419f 100644
(file)
--- a/
compat/mingw.c
+++ b/
compat/mingw.c
@@
-1028,7
+1028,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);