Fix memset in ParseArrayDims.

- In C, passing an array to a function actually passes a pointer to the
  first element of the array.
This commit is contained in:
Randy Heit 2014-12-26 17:41:04 -06:00
parent f7527b65e5
commit 6370396036

View file

@ -4036,7 +4036,7 @@ static void ParseArrayDims(int *size_p, int *ndim_p, int dims[MAX_ARRAY_DIMS])
{
int size = 0;
int ndim = 0;
memset(dims, 0, sizeof(dims));
memset(dims, 0, MAX_ARRAY_DIMS*sizeof(dims[0]));
while(tk_Token == TK_LBRACKET)
{