Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!gopnbg!mcshh!rrzbu!arne From: arne@rrzbu.hanse.de (Arne Ludwig) Newsgroups: comp.windows.x Subject: Re: xterm bug in parsing -S option Message-ID: <1625@rrzbu.UUCP> Date: 2 Sep 90 22:02:07 GMT References: <1990Aug22.210424.18890@sq.sq.com> Lines: 15 lee@sq.sq.com (Liam R. E. Quin) writes: >Here is a (totally unofficial and not tested) patch. I don't seem to >be able to recompile xterm without remaking all of the libraries, or >spending hours hacking the makefile to use -lX11 instead of ../../lib/X/X11 >and so on, sorry. Use xmkmf. Or alternatively imake -DUseInstalled -I >In any case it seems better to test the return value of sscanf() in the >following code. This is a bad idea. Berkeley sscanf returned "char *" instead of "int", causing your patch to fail on many systems. -- Arne Ludwig arne@rrzbu.hanse.de ...uunet!??????!rrzbu!arne