about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-12-30 17:48:11 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-12-30 17:48:11 +0000
commitc29448881ebc53c0ba4a7def5808eb6dad35cb39 (patch)
tree260580c0cc44ceeb3f1fd9ef683a188cd6d856ea
parentbe7016f7f44273f44b6d15de2ac1daeec1be4f48 (diff)
downloadnetpbm-mirror-c29448881ebc53c0ba4a7def5808eb6dad35cb39.tar.gz
netpbm-mirror-c29448881ebc53c0ba4a7def5808eb6dad35cb39.tar.xz
netpbm-mirror-c29448881ebc53c0ba4a7def5808eb6dad35cb39.zip
Fix syntax error
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2087 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--doc/HISTORY3
-rwxr-xr-xeditor/pnmmargin2
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index 883407ce..247812d3 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,6 +6,9 @@ CHANGE HISTORY
 
 not yet  BJH  Release 10.66.00
 
+              pnmmargin: fix for size 0 and superfluous "unexpected operator" 
+              message with size != 0.
+
               pstopnm: fix wrong orientation sometimes when you specify
               both -xsize and -ysize.  Introduced in 10.65.
 
diff --git a/editor/pnmmargin b/editor/pnmmargin
index 51ebebe5..b31deefd 100755
--- a/editor/pnmmargin
+++ b/editor/pnmmargin
@@ -76,7 +76,7 @@ fi
 
 cat $@ > $tmp1
 
-if [ $size == 0 ] ; then
+if [ $size -eq 0 ] ; then
     # Zero margin; just copy input to output
     pamtopnm $plainopt $tmp1;
 else