http://drealms.kyndig.com/snippets/mem1.html
I take no credit whatsoever for that code, simply point to it as something that's helped me quite a bit with dreamless. What that will do is: A> eliminate the necessity for MSL (max_string_length) in your code B> automatically expand your buffers as needed, preventing a buffer overflow. C> Handle everything quite a bit better. After installing this, I went from using 20m ram to 10m on each of the ports I use, which is saying a lot for the code in and of itself. However, it's not the easiest snippet to put in, if you've made changes to your mud in the past, but I think it's the smartest thing I ever did re: memory management. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Big Red Sent: Monday, November 12, 2001 4:14 AM To: Rom Mailing List Subject: Buffer overflowage! Hey! Can anyone help me out? I need some protection from manual buffer overflowin (note list x10 bazillion million... ...aah, billion), from less-then-friendly players that want to bring chaos and destruction to my innocent mud! Anyone, help would be appreciated to a quantum factor... or some other flashy mathematical term... quAantum..... ....FACTOR! Squared algebraic denominatorRRR!! (don't bother pointing out that makes less then no sense, I already know) ...Oh yeah, and while I'm at it, anyone that can direct me to some help on debugging lovely little things that make my mud casually commit suicide, that evade and even short-circuit gdb... ...Aaugh, not that I have anything like that in my mud, of course. Thanks again. ...And again, for those who forget quick. -- ROM mailing list [email protected] http://www.rom.org/cgi-bin/mailman/listinfo/rom

