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:
parent
df85e15671
commit
bfac2be502
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue