netpbm/netpbm-10.35-ppmquantall.patch
Jindrich Novy 7c46c91b0e - fix .ppmquantall patch (#207799)
- merge cmapsize with bmptopnm patch (#224554)
2007-08-20 12:04:27 +00:00

15 lines
519 B
Diff

diff -ur netpbm-10.35.orig/editor/ppmquantall netpbm-10.35/editor/ppmquantall
--- netpbm-10.35.orig/editor/ppmquantall 2006-09-22 13:47:25.000000000 -0400
+++ netpbm-10.35/editor/ppmquantall 2006-09-22 13:48:07.000000000 -0400
@@ -62,8 +62,8 @@
# To be robust, we need to use Pnmfile to get that information, or
# Put this program in C and use ppm_readppminit().
-set widths=()
-set heights=()
+widths=()
+heights=()
for i in ${files[@]}; do
widths=(${widths[*]} `grep -v '^#' $i | sed '1d; s/ .*//; 2q'`)