Article View: gnu.emacs.vm.bug
Article #9631timer.c uses gets
From: David J. MacKenzie
Date: Sat, 06 Apr 1991 18:43
Date: Sat, 06 Apr 1991 18:43
4 lines
645 bytes
645 bytes
timer.c uses gets(). Bad. atoi ignores trailing junk after the number anyway, so you can simply replace the gets call with (void) fgets(timebuf, sizeof timebuf, stdin); (Right?)
Technical Details
Message-ID:
<9104061843.AA21791@egypt.eng.umd.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6829,db10a8ecfeff4728,start X-Google-Attributes: gidf6829,public X-Google-ArrivalTime: 1991-04-07 04:18:25 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vm From: djm@eng.umd.edu (David J. MacKenzie) Newsgroups: gnu.emacs.vm.bug Subject: timer.c uses gets Message-ID: <9104061843.AA21791@egypt.eng.umd.edu> Date: 6 Apr 91 18:43:47 GMT Sender: bug-vm-request@uunet.uu.net Lines: 4