HomeFreeBSD

Fix gcc 10.1 stringop-truncation error

Description

Fix gcc 10.1 stringop-truncation error

As we do not expect the destination of these strncpy calls to be NULL
terminated, substitute them with memcpy.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #10346

Details

Provenance
g_amanakis_yahoo.comAuthored on May 19 2020, 9:24 PM
GitHub <noreply@github.com>Committed on May 19 2020, 9:24 PM
Parents
rG5b090d57d4da: freebsd: return EISDIR for read(2) on directories
Branches
Unknown
Tags
Unknown