HomeFreeBSD

MFC r283115

Description

MFC r283115

Properly null-terminate strings in a kernel dump header. A version string
longer than 192 bytes will cause the version field of a dump header to
overflow. strncpy doesn't null terminate it, so savecore will print a
corrupted info file. Using strlcpy fixes the bug.

Details

Provenance
asomersAuthored on
Parents
rS284190: "status_reg.acpwr ? 1 : 0" is now the same as just "status_reg.acpwr".
Branches
Unknown
Tags
Unknown