FTBFS if "-Werror=format-security" flag is used
Chris Adams
linux at cmadams.net
Tue Dec 10 17:02:18 UTC 2013
Once upon a time, Chris Adams <linux at cmadams.net> said:
> Aside from everything else, using the printf() family of functions when
> you don't want formatted output is bad practice. There's really no
> excuse for calling printf(foo); if you don't want formatted output (i.e.
> you don't pass a format string with additionalarguments to be
> converted), then use the correct function for the job such as puts(foo).
And before anybody jumps on it, I meant fputs(foo, stdout) (I forgot
puts() appends a newline).
--
Chris Adams <linux at cmadams.net>
More information about the devel
mailing list