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)
Mon, Nov 24, 1:14 PM
Unknown Object (File)
Fri, Nov 21, 8:31 AM
Unknown Object (File)
Tue, Nov 18, 2:54 PM
Unknown Object (File)
Tue, Nov 11, 3:29 PM
Unknown Object (File)
Oct 20 2025, 7:17 PM
Unknown Object (File)
Oct 14 2025, 6:29 AM
Unknown Object (File)
Sep 25 2025, 12:32 PM
Unknown Object (File)
Sep 16 2025, 11:18 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 Passed
Unit
No Test Coverage
Build Status
Buildable 10313
Build 10727: arc lint + arc unit