Path: utzoo!utgpu!attcan!uunet!lll-winken!arisia!sgi!msc@canth.SGI.COM From: msc@canth.SGI.COM (Mark Callow) Newsgroups: comp.windows.news Subject: Re: insignificant zeros crash server, film at 11 ... Summary: setdash fix Message-ID: <20381@sgi.SGI.COM> Date: 10 Oct 88 01:35:06 GMT References: <8810040723.AA04993@brillig.umd.edu> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 30 In article <8810040723.AA04993@brillig.umd.edu>, marshall@software.ORG (Eric Marshall) writes: > > It sounds weird to me, but both of the following programs > cause the server to dump core: > > [ 4.00000 ] 0 setdash > 100 100 moveto > 200 100 lineto stroke > and > [ 00004.0 ] 0 setdash > 100 100 moveto > 200 100 lineto stroke The following change fixes this problem (thanks to James for the fix) In the routine setdash() in server/nucleus/misc.c change case real_type: buf[i] = optop->value.real; break; to case real_type: buf[i] = fractf(optop->value.real); break; -- From the TARDIS of Mark Callow msc@sgi.sgi.com, ...{ames,decwrl,sun}!sgi!msc "There is much virtue in a window. It is to a human being as a frame is to a painting, as a proscenium to a play. It strongly defines its content."