[LTP] [PATCH v3] inotify: replace strcpy() with snprintf()

Andrea Cervesato andrea.cervesato@suse.com
Tue Mar 17 10:39:58 CET 2026


Hi!

> 
>  #define BUF_SIZE 256
> -static char fname1[BUF_SIZE], fname2[BUF_SIZE], fname3[BUF_SIZE];
> +static char fname1[BUF_SIZE], fname2[PATH_MAX], fname3[PATH_MAX];

Still using BUF_SIZE.....

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list