diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-09-22 17:42:00 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-09-22 17:42:00 (GMT) |
commit | 8c1ae998379bce4a0e719aaac43a777713ab5c00 (patch) | |
tree | ed96414c79da5f3f6985dc03b3bbc2c0a560e0da /examples/blockStreaming_doubleBuffer.c | |
parent | abb6f7806a9753504776a7d4a9c1bbb4841f91c8 (diff) | |
download | lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.zip lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.gz lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.bz2 |
fixed : clang warnings
Diffstat (limited to 'examples/blockStreaming_doubleBuffer.c')
-rw-r--r-- | examples/blockStreaming_doubleBuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/blockStreaming_doubleBuffer.c b/examples/blockStreaming_doubleBuffer.c index bd87e77..0adf6ae 100644 --- a/examples/blockStreaming_doubleBuffer.c +++ b/examples/blockStreaming_doubleBuffer.c @@ -140,9 +140,9 @@ int main(int argc, char* argv[]) return 0; } - sprintf(inpFilename, "%s", argv[1]); - sprintf(lz4Filename, "%s.lz4s-%d", argv[1], BLOCK_BYTES); - sprintf(decFilename, "%s.lz4s-%d.dec", argv[1], BLOCK_BYTES); + snprintf(inpFilename, 256, "%s", argv[1]); + snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[1], BLOCK_BYTES); + snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[1], BLOCK_BYTES); printf("inp = [%s]\n", inpFilename); printf("lz4 = [%s]\n", lz4Filename); |