Page MenuHomeFreeBSD

Use more modern C rountines.
ClosedPublic

Authored by delphij on Jul 5 2017, 6:05 AM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

delphij created this revision.Jul 5 2017, 6:05 AM
kevlo accepted this revision.Jul 6 2017, 7:01 AM

Looks good to me.

This revision is now accepted and ready to land.Jul 6 2017, 7:01 AM
This revision was automatically updated to reflect the committed changes.