Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: wcwang@hermes.psych.indiana.edu (Bill Wang)
Subject: Re: Ghostview 1.5 on alpha
Date: Thu, 3 Mar 1994 21:39:40 GMT	[thread overview]
Message-ID: <CM3yu4.LxM@usenet.ucs.indiana.edu> (raw)
In-Reply-To: CM092L.ID9@usenet.ucs.indiana.edu

Here is the fix for gs261.  Thanks.

From george@ziggy.eng.miami.edu Wed Mar  2 14:55:02 1994
Subject: ghostview 1.5 error
To: wcwang@olympian.psych.indiana.edu

In case you have not gotten any answer yet:

grep the word "malformed" from the c-files. You will find it in a 
file named gdevxini.c. It is a error message that pops up when a 
condition is met, which precedes the line with the printf() message. 
The 'if' statement is incorrect. It has incorrect "and's" and "or's". 

The original block  reads:

 type == XA_STRING) {
            nitems = sscanf(buf, "%*s %d %d", &(xdev->foreground),
                                              &(xdev->background));
error!->     if (nitems != 2 || *buf != 'M' || *buf != 'G' || *buf != 'C') {
                eprintf("gs: Malformed ghostview color property.\n");
                exit(1);
            }
            palette = max(palette, *buf);

And it should read:

 type == XA_STRING) {
            nitems = sscanf(buf, "%*s %d %d", &(xdev->foreground),
                                              &(xdev->background));
fix ->      if (nitems != 2 || (*buf != 'M' && *buf != 'G' && *buf != 'C')) {
                eprintf("gs: Malformed ghostview color property.\n");
addition        eprintf2("gs: got \"%s\" (nitems=%d).\n", buf, nitems);
addition        eprintf("gs: expected \"%%*s %%d %%d\".\n");
                exit(1);
            }
            palette = max(palette, *buf);

 
Hope this helps.

Good luck.

George


-- 
Bill Wang
US Mail = Psychology Department, Indiana University, Bloomington, IN 47405
Internet = wcwang@cs.indiana.edu


      reply	other threads:[~1994-03-03 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-01 21:30 Ghostview 1.5 on alpha Bill Wang
1994-03-03 21:39 ` Bill Wang [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox