[comp.sources.d] xv patch level 3 -autogamma bug

washburn@hpcupt1.cup.hp.com (Doug Washburn) (12/14/90)

After compiling the source for xv patch level 3, I noticed that the -autogamma
option still doesn't work. The following context diff shows what to patch to
make it work.

---------------------------- Cut Here ------------------------------
*** xv.c.pl3    Thu Dec 13 11:29:32 1990
--- xv.c        Thu Dec 13 11:35:33 1990
***************
*** 282,288
        }
      }

!     else if (!strncmp(argv[i],"-as",2)) { /* default aspect */
        int n,d;
        if (++i<argc) {
        if (sscanf(argv[i],"%d:%d",&n,&d)!=2 || n<1 || d<1)

--- 282,288 -----
        }
      }

!     else if (!strncmp(argv[i],"-as",3)) { /* default aspect */
        int n,d;
        if (++i<argc) {
        if (sscanf(argv[i],"%d:%d",&n,&d)!=2 || n<1 || d<1)
---------------------------- Cut Here ------------------------------

Doug Washburn
washburn@hpda.cup.hp.com
(408) 447-6089