diff options
Diffstat (limited to 'contrib/binlog.c')
-rw-r--r-- | contrib/binlog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/binlog.c b/contrib/binlog.c index 965c3fa0..1506be88 100644 --- a/contrib/binlog.c +++ b/contrib/binlog.c @@ -3,6 +3,7 @@ */ #include <sys/types.h> #include <err.h> +#include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdarg.h> @@ -59,7 +60,7 @@ int main(int argc, char **argv) { while (1){ l = read(ifd, buf, BUFSIZ); if (l > 0) - write(ofd, buf, l); + assert(write(ofd, buf, l) > 0); usleep(1000); bzero(buf, BUFSIZ); spinner( n++ ); |