sudo-project / sudo

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

Prefer fputs over fprintf where possible #293

Closed AreaZR closed 1 year ago

AreaZR commented 1 year ago

fprintf does extra work and meant for formatting strings.

millert commented 1 year ago

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

AreaZR commented 1 year ago

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

Addressed!