about summary refs log tree commit diff
path: root/converter/other/pamtopfm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-06-28 07:32:20 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-06-28 07:32:20 +0000
commitc30e8f50a4b32c390ea23d6e46932d97762f3a43 (patch)
treef9eea8523b784312618fd4b7c21f2f3d9dbe6ded /converter/other/pamtopfm.c
parentd7c5ff20216b247f1d46a045d9027d38cfd4c73e (diff)
downloadnetpbm-mirror-c30e8f50a4b32c390ea23d6e46932d97762f3a43.tar.gz
netpbm-mirror-c30e8f50a4b32c390ea23d6e46932d97762f3a43.tar.xz
netpbm-mirror-c30e8f50a4b32c390ea23d6e46932d97762f3a43.zip
Fix wrong determination of machine endianness
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@339 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pamtopfm.c')
-rw-r--r--converter/other/pamtopfm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/pamtopfm.c b/converter/other/pamtopfm.c
index f8fdc96b..44a8ab08 100644
--- a/converter/other/pamtopfm.c
+++ b/converter/other/pamtopfm.c
@@ -273,10 +273,10 @@ main(int argc, char **argv ) {
 
     pnm_init(&argc, argv);
 
-    parseCommandLine(argc, argv, &cmdline);
-
     machineEndianness = thisMachineEndianness();
 
+    parseCommandLine(argc, argv, &cmdline);
+
     ifP = pm_openr(cmdline.inputFilespec);
 
     tuplenArray = pnm_readpamn(ifP, &pam, sizeof(pam));