HomeFreeBSD

jedec_dimm: Use correct string length when populating sc->slotid_str

Description

jedec_dimm: Use correct string length when populating sc->slotid_str

Don't limit the copy to the size of the target string *pointer* (always
4 on 32-bit / 8 on 64-bit). Instead, just use strdup().

Reported by: Coverity
CID: 1386912
Reviewed by: cem, imp
MFC after: 1 week