On Mon, 15 Dec 1997, Angus Mezick wrote:
> Any one running Oasis might want to try redit'ing a room and adding an
> exit. Choose to enter a keyword for the exit, and just hit enter,
> meaning no keyword. This crashed me. anyone else?
>
> My solution looks like this:
> if(arg&&*arg)
> OLC_EXIT(d)->keyword = str_dup(arg);
> else
> OLC_EXIT(d)->keyword=NULL;
v1.6a:
case REDIT_EXIT_KEYWORD:
if (OLC_EXIT(d)->keyword)
free(OLC_EXIT(d)->keyword);
OLC_EXIT(d)->keyword = ((arg && *arg) ? str_dup(arg) : NULL);
redit_disp_exit_menu(d);
return;
--
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