| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | C++ Saveding stuff |
MM>> char s[40];
MM>> gets(s);
MM>> puts("\r\nThis was the string you entered : "); puts(s);
AT> NO! Never! Bad! You've allocated 40 bytes, but the
AT> user could easily type 4000.
Ironically, this message arrived after I sent you that message pointing out
that you'd done exactly the the same thing with `cin >> buffer' in your code,
earlier in this same thread. (-:
¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3) |
|
| 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™.