TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Paul Edwards
from: Bob Lawrence
date: 1996-11-03 10:47:20
subject: Special Requests

BL> names: array[0..128] of string[12];

 PE> char names[129][13]; ???

  I did that, but it was a total shambles to use.

 BL> Which reminds me... I forgot to limit the names array. Pacal
 BL> does it for you with a range check; in C it just overflows.
 BL> Bum!

 PE> C substitutes protection and slowness for a noose and speed.

  I don't agree that speed is an issue, but Pascal teaches bad habits.
Once you use objects and pointers you have to look after yourself even
in Pascal, but the protection is handy even so. It's like there are two 
languages in one...

 PE> Anyway, like I said, I'm using the "original". BFN. Paul. 

  The bug is in the original with the char names[128] array. If you
get more than 128 zero-length files, it just keeps on writing names
into nothing. It's pretty unlikely you'll get so many, but the bug is
still there.

Regards,
Bob
 
___ Blue Wave/QWK v2.12
@EOT:

---
* Origin: Precision Nonsense, Sydney (3:711/934.12)
SEEN-BY: 711/934 712/610
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

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™.