Re: [Circle] [CODE] File Viewer

From: Haddixx (haddixx@megamed.com)
Date: 08/22/96


Some of you pointed out an error in my code, thanks I had forgotten that
I changed MAX_STRING_LENGTH.  In my mud I increased the
MAX_STRING_LENGTH size to 12KB. That is why I set the max # of lines
to 150.  It probably should be put around 80-90 for standard circle
muds.  To prevent buf from being maxed out.

haddixx

>Your code is missing a check for MAX_STRING_LENGTH
>this may crash the mud.
>150*80 = 12000 and MAX_STRING_LENGTH is 8 KB I guess.

-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Haddixx             |   -=-=-Implementor of Avalanche MUD-=-=-    |   
+ Brian M. Menges     + Running at: 143.207.31.45 8000              +
| haddixx@megamed.com |   Web Page: http://www.megamed.com/~haddixx |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST