Skip to content

Commit

Permalink
Merge branch 'jk/tighten-alloc'
Browse files Browse the repository at this point in the history
* jk/tighten-alloc:
  compat/mingw: brown paper bag fix for 50a6c8e
  • Loading branch information
Junio C Hamano committed Mar 4, 2016
2 parents 49a4352 + 8d5b332 commit 6dd0a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6dd0a37

Please sign in to comment.