sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.15k stars 208 forks source link

Prefer fputs over fprintf where possible #293

Closed AtariDreams closed 9 months ago

AtariDreams commented 1 year ago

fprintf does extra work and meant for formatting strings.

millert commented 11 months ago

In many cases this will add extra newlines. Unlike fputs(), puts() will always write a newline after the string.

AtariDreams commented 9 months ago

In many cases this will add extra newlines. Unlike fputs(), puts() will always write a newline after the string.

Addressed!