]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343408: Silence Clang Scan warnings regarding unsafe use of strcp().
authorse <se@FreeBSD.org>
Thu, 14 Feb 2019 15:39:17 +0000 (15:39 +0000)
committerse <se@FreeBSD.org>
Thu, 14 Feb 2019 15:39:17 +0000 (15:39 +0000)
commit3c086c14ed46c085f3e052007b620758cefd3277
tree5923ada145ba078b361a5265b6c7e4df563270cb
parent52964228907add94a5349c9a225bb83716450c9c
MFC r343408: Silence Clang Scan warnings regarding unsafe use of strcp().

While these warnings are false positives, the use of strdup() instead of
malloc() and strcpy() simplifies and clarifies the code.

A bogus assignment to a variable (whose previous value may be required in
a later block) has also been removed.
usr.bin/whereis/whereis.c