get_alt_digits: Fix typo in allocation

adi->digit is an array of CHAR *, not of CHAR **.

Fixes Coverity CID 60043

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-10-22 21:29:10 +02:00
parent db8bda4b47
commit 94f40db019
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ get_alt_digits (const char *alt_digits)
++adi->num;
/* Allocate the `digit' array, which is an array of `num' pointers into
`buffer'. */
adi->digit = (CHAR **) calloc (adi->num, sizeof (CHAR **));
adi->digit = (CHAR **) calloc (adi->num, sizeof (CHAR *));
if (!adi->digit)
{
free (adi);