[LTP] [RFC PATCH 1/2] Add support for mixing C and shell code

Cyril Hrubis chrubis@suse.cz
Wed Jul 17 10:41:19 CEST 2024


Hi!
> tst_res_.c:52:9: error: format not a string literal and no format arguments
> [-Werror=format-security]
>    52 |         tst_res_(argv[1], atoi(argv[2]), type, msg);
>       |         ^~~~~~~~

Right, this needs:

tst_res_(argv[1], atoi(argv[2]), type, "%s", msg);

I wonder why I didn't get warning at my end.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list