Page MenuHomeFreeBSD

Make sure f_name is nul-terminated.

Authored by delphij on Sep 17 2015, 7:43 AM.



Use strlcpy instead of strncpy because subsequent mkstemps
expects the string be nul-terminated.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

delphij updated this revision to Diff 8812.Sep 17 2015, 7:43 AM
delphij retitled this revision from to Make sure f_name is nul-terminated..
delphij updated this object.
delphij edited the test plan for this revision. (Show Details)
delphij added reviewers: grehan, neel.
neel accepted this revision.Sep 17 2015, 5:53 PM
neel edited edge metadata.

Looks good. Thanks for fixing.

This revision is now accepted and ready to land.Sep 17 2015, 5:53 PM
This revision was automatically updated to reflect the committed changes.