]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
fix bug #289: use strcpy instead of strncpy 294/head
authorSebastian Pop <s.pop@samsung.com>
Tue, 22 Jan 2019 19:46:34 +0000 (13:46 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 24 Jan 2019 11:50:49 +0000 (12:50 +0100)
commita346a9fb772d977b101923be71640b5c3db859a1
treef2795f383be36e216bd6af9ea477e0047d89df89
parent34799666442565d2caa49e83697e6849064c7687
fix bug #289: use strcpy instead of strncpy

to avoid a GCC 8 warning:

test/example.c:465:48: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
     strncpy((char*)uncompr, garbage_str, sizeof(garbage_str));
test/example.c