From a766ac528cab8a39fe3b00942d0424511ccafa1c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 9 Jun 2016 23:04:42 -0500 Subject: [PATCH] Whoops --- bin/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/print.c b/bin/print.c index f575929..8ffe261 100644 --- a/bin/print.c +++ b/bin/print.c @@ -59,7 +59,7 @@ int tabby_command_print(int argc, char **argv) { tabby_printer_init(printer); } while (printer->device != TABBY_PRINTER_DEVICE_ID); - while ((readlen = read(fd, band, sizeof(band))) >= 0) { + while ((readlen = read(fd, band, sizeof(band))) > 0) { offset += readlen; tabby_printer_band_send(printer, band);