diff options
Diffstat (limited to 'test/example.c')
-rw-r--r-- | test/example.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/example.c b/test/example.c index e11bd2e..7567fc5 100644 --- a/test/example.c +++ b/test/example.c @@ -461,8 +461,7 @@ void test_dict_inflate(unsigned char *compr, size_t comprLen, unsigned char *unc int err; PREFIX3(stream) d_stream; /* decompression stream */ - char garbage_str[] = "garbage garbage garbage"; - strncpy((char*)uncompr, garbage_str, sizeof(garbage_str)); + strcpy((char*)uncompr, "garbage garbage garbage"); d_stream.zalloc = zalloc; d_stream.zfree = zfree; |