Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ames!ncar!noao!asuvax!behemoth!mph From: mph@behemoth.phx.mcd.mot.com (Mark Huth) Newsgroups: comp.sys.amiga Subject: Lattice library bug Message-ID: <11114@behemoth.phx.mcd.mot.com> Date: 20 Jun 89 01:23:21 GMT References: <24993@shemp.CS.UCLA.EDU> Reply-To: mph@behemoth.UUCP (Mark Huth) Organization: Motorola Microcomputer Division, Tempe, Az. Lines: 14 It seems that I have discovered a Lattice C library bug. The routine SHORT short; sscanf( string, "%hd", &short ); operates incorrectly (and probably scanf and fscanf as well). The short is treated as an integer or long within the scanning routine, corrupting memory and always returning 0 for the value of short. Yes, I will report this to Lattice, but my registration apparently has not yet arrived. Mark Huth