Page MenuHomeFreeBSD

Use more modern C rountines.
ClosedPublic

Authored by delphij on Jul 5 2017, 6:05 AM.
Tags
None
Referenced Files
F157697850: D11486.diff
Sun, May 24, 5:06 AM
Unknown Object (File)
Fri, May 8, 11:36 AM
Unknown Object (File)
Mon, Apr 27, 5:00 PM
Unknown Object (File)
Sun, Apr 26, 11:11 AM
Unknown Object (File)
Apr 23 2026, 11:45 AM
Unknown Object (File)
Apr 21 2026, 7:57 AM
Unknown Object (File)
Apr 20 2026, 7:33 PM
Unknown Object (File)
Apr 19 2026, 8:27 PM
Subscribers

Details

Summary
  • Use strlcat() instead of strncat().
  • Use asprintf() and handle allocation errors.

The resulting init(8) binary is slightly smaller than before.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable