TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: TOM TORFS
from: JIM LOWRY
date: 1998-04-05 09:51:00
subject: READING INPUT FROM STDIN

 Chill Tom.  
  You are right and David is wrong and you've explained it well, thank 
you. 
 Jim
TT>DVH> char name[40];
TT>DVH> gets(name);
TT>DVH> name[40]='\0';
TT>TT> That still leaves the problem that you're writing to memory that
TT>TT> isn't yours. Your array is only 40 characters long and you try to
TT>TT> access the 41st element!
TT> DVH> Actually it is correct.
TT>No it isn't correct. I've said twice why (one of which is quoted
TT>above), as have other people, I'm not going to repeat it once more.
TT>greetings,
TT>Tom
TT>tomtorfs@village.uunet.be
TT>--- timEd/2 1.10+
jiml@hal-pc.org  Houston: Home of the Humid.
---
  CMPQwk 1.42 #1689 þ TNet 3.50 ÷ ~ DataNet ~  í The Patchbay BBS í  (818) 
441-3965
--- FLAME v1.1
---------------
TT> * Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)
* Origin: HAL-PC - (713)963-4100 (1:106/4100)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.