mirror of
https://github.com/ZDoom/acc.git
synced 2025-03-13 03:42:17 +00:00
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:
parent
f7527b65e5
commit
6370396036
1 changed files with 1 additions and 1 deletions
2
parse.c
2
parse.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue