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
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}