X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=evolis-printer.pl;h=54e2cebca2e951113f4104da2d9d33e7c1e0e303;hb=4bfc8d2a1b2f159f2b96107bcda51dfa6a9dc787;hp=11bd8b794e37fd358eaf2736ad013a7ee291f1d6;hpb=59a692155bf314944671f6a4977db5caf1de2902;p=Printer-EVOLIS.git diff --git a/evolis-printer.pl b/evolis-printer.pl index 11bd8b7..54e2ceb 100755 --- a/evolis-printer.pl +++ b/evolis-printer.pl @@ -54,6 +54,8 @@ while(<>) { } $len == length $comp or warn "wrong length $len != ", length $comp; + die "compression not supported" unless $color =~ m/[ko]/; + my $data; my $i = 0; while ( $i < length $comp ) {