--- ray/src/util/dctimestep.c 2025/03/27 16:34:23 2.53 +++ ray/src/util/dctimestep.c 2025/06/07 05:09:46 2.55 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: dctimestep.c,v 2.53 2025/03/27 16:34:23 greg Exp $"; +static const char RCSid[] = "$Id: dctimestep.c,v 2.55 2025/06/07 05:09:46 greg Exp $"; #endif /* * Compute time-step result using Daylight Coefficient method. @@ -14,8 +14,6 @@ static const char RCSid[] = "$Id: dctimestep.c,v 2.53 #include "platform.h" #include "resolu.h" -char *progname; /* global argv[0] */ - /* Sum together a set of images and write result to fout */ static int sum_images(const char *fspec, const CMATRIX *cv, FILE *fout) @@ -180,8 +178,8 @@ main(int argc, char *argv[]) CMATRIX *cmtx; /* component vector/matrix result */ char fnbuf[256]; int a, i; - - progname = argv[0]; + /* set global progname */ + fixargv0(argv[0]); /* get options */ for (a = 1; a < argc && argv[a][0] == '-'; a++) switch (argv[a][1]) {