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>
1 file changed
tree: 392d387bf13595ad150eaf64609f7a9ffddd08a9
  1. scripts/
  2. .clang-format
  3. .gitignore
  4. argument.cpp
  5. argument.hpp
  6. bootstrap.sh
  7. configure.ac
  8. fru_area.cpp
  9. fru_area.hpp
  10. frup.cpp
  11. frup.hpp
  12. LICENSE
  13. MAINTAINERS
  14. Makefile.am
  15. readeeprom.cpp
  16. README.md
  17. strgfnhandler.cpp
  18. types.hpp
  19. writefrudata.cpp
  20. writefrudata.hpp
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.