mirror of https://git.tukaani.org/xz.git
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:
parent
694952d545
commit
7db6bdf4ab
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue