Searched hist:ec73c958 (Results 1 – 1 of 1) sorted by relevance
/openbmc/ipmi-fru-parser/ |
H A D | frup.cpp | ec73c958 Wed Nov 21 15:04:13 CST 2018 Brad Bishop <bradleyb@fuzziesquirrel.com> frup: gcc8: swap abusive use strncpy w/ memcpy Fix the following warning under gcc8: | ../git/frup.cpp: In function 'void _append_to_dict(uint8_t, uint8_t*, IPMIFruInfo&)': | ../git/frup.cpp:664:24: error: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 2 bytes from a string of the same length [-Werror=stringop-truncation] | strncpy(bin_in_ascii, "0x", 2); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ Change-Id: Ia35d0ae733f0879f6c9d23126bab5fc899e89def Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|