diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2012-01-10 17:13:03 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2012-01-10 17:13:03 +0200 |
commit | 7db6bdf4abcf524115be2cf5659ed540cef074c5 (patch) | |
tree | 6aba2e3688cae61f35ca5d5ee5e546ece9ec0e89 /tests | |
parent | Docs: Explain the stable releases better in README. (diff) | |
download | xz-7db6bdf4abcf524115be2cf5659ed540cef074c5.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')
-rw-r--r-- | tests/create_compress_files.c | 3 |
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); } |