David Van Hoose wrote in a message to Tom Torfs:
DVH> char name[40];
DVH> gets(name);
DVH> name[40]='\0';
TT> That still leaves the problem that you're writing to memory that
TT> isn't yours. Your array is only 40 characters long and you try to
TT> access the 41st element!
DVH> Actually it is correct.
No it isn't correct. I've said twice why (one of which is quoted above), as
have other people, I'm not going to repeat it once more.
greetings,
Tom
tomtorfs@village.uunet.be
--- timEd/2 1.10+
---------------
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)
|