X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/b126a7b2d76bffbe16dd439b8049898442191536..28f34e6425c63edd0db0e20effda20e1e71ba193:/src/parse.y diff --git a/src/parse.y b/src/parse.y index 918cbd0..1542c09 100644 --- a/src/parse.y +++ b/src/parse.y @@ -375,7 +375,7 @@ declspec_noid: declspec_notype | typespec_noid vla_ident: T_IDENT | T_ASTERISK { ALLOC($$, sizeof ""); - strcpy($$, ""); + *$$ = 0; } array: T_LBRACKET array_length T_RBRACKET { @@ -572,7 +572,7 @@ array_length: T_UINT { english_vla: T_IDENT | { ALLOC($$, sizeof ""); - strcpy($$, ""); + *$$ = 0; } %%