]> Kevux Git Server - rit/commit
compat/regex: fix argument order to calloc(3)
authorJunio C Hamano <gitster@pobox.com>
Sun, 12 May 2024 06:25:04 +0000 (23:25 -0700)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 30 Oct 2024 14:27:18 +0000 (15:27 +0100)
commit7e6073d27083054773f3c3b21a608f400cf7348d
treeedce683a050888f370f67d28f70d4a6e53caff10
parent5d828879f320501ba8fa75099ee01dc6f4c3cf77
compat/regex: fix argument order to calloc(3)

Windows compiler suddenly started complaining that calloc(3) takes
its arguments in <nmemb, size> order.  Indeed, there are many calls
that has their arguments in a _wrong_ order.

Fix them all.

A sample breakage can be seen at

  https://github.com/git/git/actions/runs/9046793153/job/24857988702#step:4:272

[Backported from f01301aabe1 (compat/regex: fix argument order to
calloc(3), 2024-05-11).]

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
compat/regex/regcomp.c
compat/regex/regex_internal.c
compat/regex/regexec.c