ps_matched: xcalloc() takes nmemb and then element size
commit8b54c23437834b36bbb5f6de2f577400385da770
authorJunio C Hamano <gitster@pobox.com>
Thu, 20 Aug 2015 16:57:32 +0000 (20 09:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Aug 2015 16:57:38 +0000 (20 09:57 -0700)
tree1be1514c35a099216b33574ba10cc51f845f0acc
parent8545932d45c91437ac439b1a2df12cf397f71311
ps_matched: xcalloc() takes nmemb and then element size

Even though multiplication is commutative, the order of arguments
should be xcalloc(nmemb, size).  ps_matched is an array of 1-byte
element whose size is the same as the number of pathspec elements.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
builtin/ls-files.c