Re: [PATCH rtems] grlib: Fix snprintf() overflow warnings from gcc 12

2023-01-30 Thread Gedare Bloom
This is OK. Not ideal, but consistent with the current code at least. The commit message is a bit wrong since it also fixes sprintf() messages. We should probably replace the sprintf with snprintf especially where there is a string being used (prefix). The prefix is usually (always?) 32 byte arra

[PATCH rtems] grlib: Fix snprintf() overflow warnings from gcc 12

2023-01-27 Thread Joel Sherrill
Updates #4662. --- bsps/include/grlib/gpiolib.h | 2 +- bsps/shared/grlib/1553/b1553brm.c | 2 +- bsps/shared/grlib/1553/b1553rt.c | 2 +- bsps/shared/grlib/analog/gradcdac.c| 2 +- bsps/shared/grlib/can/grcan_internal.h | 2 +- bsps/shared/grlib/can/occan.c | 2 +