projects
/
Printer-EVOLIS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59a6921
)
check if compression is supported
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 14 Aug 2010 23:52:48 +0000
(
01:52
+0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 14 Aug 2010 23:52:48 +0000
(
01:52
+0200)
evolis-printer.pl
patch
|
blob
|
history
diff --git
a/evolis-printer.pl
b/evolis-printer.pl
index
11bd8b7
..
54e2ceb
100755
(executable)
--- 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 ) {