SLOF/romfs/tools
Thomas Huth d8a9354c2a romfs/tools: Silence more compiler warnings with GCC 8.1
GCC 8 complains about the following usages of strncpy, too:

create_crc.c:86:3: warning: ‘strncpy’ specified bound 16 equals destination
 size [-Wstringop-truncation]
   strncpy(uHeader.stHeader.version, pcVersion, 16);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
create_crc.c:84:3: warning: ‘strncpy’ specified bound 16 equals destination
 size [-Wstringop-truncation]
   strncpy(uHeader.stHeader.version, pcVersion, 16);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Let's work around the issue by using memcpy instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2018-07-24 16:59:26 +10:00
..
.gitignore Update .gitignore files 2012-10-17 16:30:58 +11:00
Makefile romfs: factored out crc code, to make it usable from other locations 2016-07-27 15:56:25 +10:00
build_ffs.c Spelling fixes in comments and debug messages 2013-01-04 10:12:48 +05:30
cfg_parse.c Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
cfgparse.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
crclib.c romfs: factored out crc code, to make it usable from other locations 2016-07-27 15:56:25 +10:00
crclib.h romfs: factored out crc code, to make it usable from other locations 2016-07-27 15:56:25 +10:00
create_crc.c romfs/tools: Silence more compiler warnings with GCC 8.1 2018-07-24 16:59:26 +10:00
create_flash.c Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
createcrc.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00