1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Tests: Fix a compiler warning with _FORTIFY_SOURCE.

Reported here:
http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/4927385
This commit is contained in:
Lasse Collin 2012-01-10 17:13:03 +02:00
parent 694952d545
commit 7db6bdf4ab

View file

@ -79,7 +79,8 @@ static void
write_abc(FILE *file) write_abc(FILE *file)
{ {
for (size_t i = 0; i < 12345; ++i) for (size_t i = 0; i < 12345; ++i)
fwrite("abc\n", 4, 1, file); if (fwrite("abc\n", 4, 1, file) != 1)
exit(1);
} }