Page MenuHomeFreeBSD

Use more modern C rountines.
ClosedPublic

Authored by delphij on Jul 5 2017, 6:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 11, 3:13 AM
Unknown Object (File)
Mon, May 6, 6:42 PM
Unknown Object (File)
Mon, May 6, 4:30 PM
Unknown Object (File)
Thu, May 2, 12:24 AM
Unknown Object (File)
Mar 22 2024, 12:08 PM
Unknown Object (File)
Mar 22 2024, 10:57 AM
Unknown Object (File)
Mar 9 2024, 2:23 PM
Unknown Object (File)
Mar 9 2024, 2:14 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