Re: Improved Editor/Mail crashes

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


On Wed, 17 Dec 1997, Chris wrote:

>631           if ((!d->str) || (!*d->str)) {
>632                   SEND_TO_Q("Saving empty buffer.\r\n", d);
>633                } else {
>634             if (*d->str)
>635                   if (strlen(*d->str) == 0) {  <=- this is line 635
>636                      if(*d->str)
>637                             free(*d->str);
>638                     *d->str = NULL;
>639                   }

Odd, it looks like you crashed in the strlen() call.  That should be
impossible because of the *d->str check above.

That code doesn't show up anywhere in the OasisOLC version of improved
edit that I can tell, at least not how you have it written.

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