]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed minor gcc warning 1366/head
authorYann Collet <cyan@fb.com>
Thu, 11 Oct 2018 00:06:25 +0000 (17:06 -0700)
committerYann Collet <cyan@fb.com>
Thu, 11 Oct 2018 00:06:25 +0000 (17:06 -0700)
commit433059bbb2d861e434b321fbe0a89933971f821b
tree5473b39eff2d700a573cbdff9ceda04e883dd310
parent8d2c844cf13d233a46c4a069c99e7658d9f61127
fixed minor gcc warning

gcc-8 on Linux doesn't like usage of strncat :
`warning: â€˜strncat’ output truncated before terminating nul copying as many bytes from a string as its length`.

Not sure what was wrong, it might be a false positive,
but the logic is simple enough to replaced by a simple `memcpy()`,
thus avoiding the shenanigans of null-terminated strings.
programs/fileio.c