Room extra description fix

From: nate (wintersn.geo@yahoo.com)
Date: 12/07/00


        Here is another fix by the Head Coder of The Builder's Academy, Zemial.
I'm posting this on his behalf. The problem seemed to be that if a builder
writes an extra description and does not enter a keyword, the mud will
crash.
Here is the fix:

replace:

  case REDIT_EXTRADESC_KEY:
    if (genolc_checkstring(d, arg))
      OLC_DESC(d)->keyword = str_dup(arg);
    redit_disp_extradesc_menu(d);
    return;

with this:

  case REDIT_EXTRADESC_KEY:
    if (strlen(arg) <=1)
      arg = strdup("none");
    if (genolc_checkstring(d, arg))
      OLC_DESC(d)->keyword = str_dup(arg);
    redit_disp_extradesc_menu(d);
    return;

Hope this helps some people.


Rumble
The Builders Academy
cruelworld.dune.net  Port: 9091

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT