Re: [BUGFIX] Improved Edit overflow fixed

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/29/97


On Mon, 29 Dec 1997, Akuma/Chris Baggett/DOOMer wrote:

>                                   // -2 to account for the appendage of \r\n
>if (!action && (strlen(*d->str) < (d->max_str - 2)))
>   strcat(*d->str, "\r\n");

You probably also want to take into account the terminating NUL.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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