aboutsummaryrefslogtreecommitdiff
path: root/tests/create_compress_files.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2012-01-10 17:13:03 +0200
committerLasse Collin <lasse.collin@tukaani.org>2012-05-24 18:24:44 +0300
commitbfac2be5023994fcc53de2844e7dd3af61910dc2 (patch)
treec15fb8f6816b76f1b44716b4669e3a24bba14c0d /tests/create_compress_files.c
parentDocs: Explain the stable releases better in README. (diff)
downloadxz-bfac2be5023994fcc53de2844e7dd3af61910dc2.tar.xz
Tests: Fix a compiler warning with _FORTIFY_SOURCE.
Reported here: http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/4927385
Diffstat (limited to 'tests/create_compress_files.c')
-rw-r--r--tests/create_compress_files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/create_compress_files.c b/tests/create_compress_files.c
index 44367d8f..bd5b4ef4 100644
--- a/tests/create_compress_files.c
+++ b/tests/create_compress_files.c
@@ -79,7 +79,8 @@ static void
write_abc(FILE *file)
{
for (size_t i = 0; i < 12345; ++i)
- fwrite("abc\n", 4, 1, file);
+ if (fwrite("abc\n", 4, 1, file) != 1)
+ exit(1);
}