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)
Sun, Sep 13, 10:09 AM
Unknown Object (File)
Sat, Sep 12, 10:58 AM
Unknown Object (File)
Tue, Sep 8, 4:57 PM
Unknown Object (File)
Sun, Sep 6, 7:58 PM
Unknown Object (File)
Sat, Sep 5, 11:01 AM
Unknown Object (File)
Sat, Sep 5, 3:17 AM
Unknown Object (File)
Fri, Sep 4, 7:39 PM
Unknown Object (File)
Thu, Sep 3, 3:59 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