summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-09-22 18:42:00 +0100
committerYann Collet <yann.collet.73@gmail.com>2014-09-22 18:42:00 +0100
commit8c1ae998379bce4a0e719aaac43a777713ab5c00 (patch)
treeed96414c79da5f3f6985dc03b3bbc2c0a560e0da /examples
parentabb6f7806a9753504776a7d4a9c1bbb4841f91c8 (diff)
downloadlz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.gz
lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.tar.bz2
lz4-8c1ae998379bce4a0e719aaac43a777713ab5c00.zip
fixed : clang warnings
Diffstat (limited to 'examples')
-rw-r--r--examples/blockStreaming_doubleBuffer.c6
-rw-r--r--examples/blockStreaming_lineByLine.c6
-rw-r--r--examples/blockStreaming_ringBuffer.c6
3 files changed, 9 insertions, 9 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);
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);
diff --git a/examples/blockStreaming_ringBuffer.c b/examples/blockStreaming_ringBuffer.c
index 725e375..bfdbed1 100644
--- a/examples/blockStreaming_ringBuffer.c
+++ b/examples/blockStreaming_ringBuffer.c
@@ -136,9 +136,9 @@ int main(int argc, char** argv)
return 0;
}
- sprintf(inpFilename, "%s", argv[1]);
- sprintf(lz4Filename, "%s.lz4s-%d", argv[1], 0);
- sprintf(decFilename, "%s.lz4s-%d.dec", argv[1], 0);
+ snprintf(inpFilename, 256, "%s", argv[1]);
+ snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[1], 0);
+ snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[1], 0);
printf("inp = [%s]\n", inpFilename);
printf("lz4 = [%s]\n", lz4Filename);