Re: FTBFS if "-Werror=format-security" flag is used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Once upon a time, Chris Adams <linux@xxxxxxxxxxx> 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@xxxxxxxxxxx>
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux