HEdit Crashing Bug

From: Chris Jacobson (fear@ATHENET.NET)
Date: 02/25/98


This might have been covered, but I don't recall, so...

If you use hedit to edit a topic, that has more than 1 keyword, and the
keyword you specify is alphabetically AFTER the other keyword(s) for the
entry, you will crash when saving.

This is because it runs through, takes the duplicate entry, frees its
entry, but then frees the (alphabetically first) keyword's entry, which
is the same pointer.

Not too hard to fix, just a pain the butt.  It involves running through
the list during hedit_save_internally and finding entries which share the
string, and using THAT as the entry to overwrite.  To speed things up,
its not necessary to do this if the entry being edited is not flagged
"duplicate".

- Chris Jacobson


     +------------------------------------------------------------+
     | 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/15/00 PST