From c30e8f50a4b32c390ea23d6e46932d97762f3a43 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 28 Jun 2007 07:32:20 +0000 Subject: Fix wrong determination of machine endianness git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@339 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pamtopfm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'converter/other/pamtopfm.c') 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)); -- cgit 1.4.1