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_lineByLine.c | |
parent | abb6f7806a9753504776a7d4a9c1bbb4841f91c8 (diff) | |
download | lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.zip lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.gz lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.bz2 |
fixed : clang warnings
Diffstat (limited to 'examples/blockStreaming_lineByLine.c')
-rw-r--r-- | examples/blockStreaming_lineByLine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/blockStreaming_lineByLine.c b/examples/blockStreaming_lineByLine.c index e236a44..6d14801 100644 --- a/examples/blockStreaming_lineByLine.c +++ b/examples/blockStreaming_lineByLine.c @@ -158,9 +158,9 @@ int main(int argc, char* argv[]) return 0; } - sprintf(inpFilename, "%s", argv[1]); - sprintf(lz4Filename, "%s.lz4s", argv[1]); - sprintf(decFilename, "%s.lz4s.dec", argv[1]); + snprintf(inpFilename, 256, "%s", argv[1]); + snprintf(lz4Filename, 256, "%s.lz4s", argv[1]); + snprintf(decFilename, 256, "%s.lz4s.dec", argv[1]); printf("inp = [%s]\n", inpFilename); printf("lz4 = [%s]\n", lz4Filename); |