Page MenuHomeFreeBSD

Simplify string mangling in ifmaybeload().
ClosedPublic

Authored by jhb on Feb 9 2015, 10:20 PM.
Tags
None
Referenced Files
F174338790: D1814.id3712.diff
Fri, Oct 2, 12:45 PM
Unknown Object (File)
Wed, Sep 30, 9:48 PM
Unknown Object (File)
Sat, Sep 26, 9:19 PM
Unknown Object (File)
Sat, Sep 26, 11:36 AM
Unknown Object (File)
Fri, Sep 25, 12:33 PM
Unknown Object (File)
Thu, Sep 17, 6:59 AM
Unknown Object (File)
Thu, Sep 17, 6:59 AM
Unknown Object (File)
Thu, Sep 17, 6:57 AM
Subscribers

Details

Summary

Use strlcpy() instead of a strcpy() and use strlcat() instead of
a strlcpy() with a magic number subtracted from the length.
Also, replace strncmp(..., strlen(foo) + 1) with strcmp(...).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jhb retitled this revision from to Simplify string mangling in ifmaybeload()..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: emaste.

I've runtested this now and it works fine.

rpaulo added a reviewer: rpaulo.
This revision is now accepted and ready to land.Mar 13 2015, 9:36 AM
jhb updated this revision to Diff 4209.

Closed by commit rS279951 (authored by @jhb).