--- ray/src/px/ra_t16.c 2019/12/28 18:05:14 2.10 +++ ray/src/px/ra_t16.c 2025/06/06 19:11:21 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ra_t16.c,v 2.10 2019/12/28 18:05:14 greg Exp $"; +static const char RCSid[] = "$Id: ra_t16.c,v 2.11 2025/06/06 19:11:21 greg Exp $"; #endif /* * ra_t16.c - program to convert between RADIANCE and @@ -9,7 +9,7 @@ static const char RCSid[] = "$Id: ra_t16.c,v 2.10 2019 */ #include - +#include "paths.h" #include "platform.h" #include "rtio.h" #include "rtmisc.h" @@ -31,7 +31,6 @@ static const char RCSid[] = "$Id: ra_t16.c,v 2.10 2019 double gamcor = 2.2; /* gamma correction */ int bradj = 0; /* brightness adjustment */ -char *progname; char msg[128]; static int getint2(FILE *fp); @@ -53,10 +52,11 @@ main(int argc, char *argv[]) struct hdStruct head; int reverse = 0; int i; + SET_DEFAULT_BINARY(); SET_FILE_BINARY(stdin); SET_FILE_BINARY(stdout); - progname = argv[0]; + fixargv0(argv[0]); head.dataBits = 16; for (i = 1; i < argc; i++)