From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,18552b0c145340bc X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-03 13:39:40 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!hermes.psych.indiana.edu!wcwang From: wcwang@hermes.psych.indiana.edu (Bill Wang) Subject: Re: Ghostview 1.5 on alpha Message-ID: Sender: news@usenet.ucs.indiana.edu (USENET News System) Nntp-Posting-Host: hermes.psych.indiana.edu Organization: Indiana University References: Date: Thu, 3 Mar 1994 21:39:40 GMT 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