Hi, On Wed, Mar 19, 2025 at 9:35 AM Thorsten Blum <[email protected]> wrote: > > If the destination buffer has a fixed length, strscpy() automatically > determines the size of the destination buffer using sizeof() if the > argument is omitted. This makes the explicit sizeof() unnecessary. > > Furthermore, CMD_BUFLEN is equal to sizeof(kdb_prompt_str) and can also > be removed. Remove them to shorten and simplify the code. > > No functional changes intended. > > Signed-off-by: Thorsten Blum <[email protected]> > --- > kernel/debug/kdb/kdb_io.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Douglas Anderson <[email protected]> _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
