diff options
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/tftpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 9a4717723..92fb717b7 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -605,7 +605,8 @@ static ssize_t write_behind(struct testcase *test, int convert) } /* formerly putc(c, file); */ - write(test->ofile, &c, 1); + if(1 != write(test->ofile, &c, 1)) + break; skipit: prevchar = c; } |