This commit is contained in:
XANTRONIX Development 2016-06-09 23:04:42 -05:00
parent ac3377bed1
commit a766ac528c

View file

@ -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);