nuttx-apps/interpreters/bas
Xiang Xiao f28797cddf interpreters/bas: Fix compiler warning after gcc upgrade to version 12
bas_token.l: In function 'yylex':
Error: bas_token.l:1210:31: error: 'strcpy' writing 1 or more bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
 1210 |                             }
      |                               ^
In file included from bas_auto.h:77,
                 from bas_token.l:16:
bas_token.h:103:8: note: at offset 2 into destination object 'name' of size 2
  103 |   char name[2/* ... */];
      |        ^~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-10 06:40:51 -08:00
..
bas.c
bas.h
bas_auto.c
bas_auto.h
bas_autotypes.h
bas_error.h
bas_fs.c
bas_fs.h
bas_global.c
bas_global.h
bas_main.c
bas_program.c
bas_program.h
bas_programtypes.h
bas_statement.c
bas_statement.h
bas_str.c
bas_str.h
bas_token.c
bas_token.h
bas_token.l
bas_value.c
bas_value.h
bas_var.c
bas_var.h
bas_vt100.c
bas_vt100.h
Kconfig
Make.defs
Makefile