Cyber Reaper wrote: <snip> > ---snip for call in oedit.c--- > case 2: > OLC_MODE(d) = OEDIT_EXTRADESC_DESCRIPTION; > SEND_TO_Q("Enter the extra description: (/s saves /h > forhelp)\r\n\r\n", d); > d->backstr = NULL; if > (OLC_OBJ(d)->description) { > SEND_TO_Q(OLC_OBJ(d)->description, d); > d->backstr = str_dup(OLC_DESC(d)->description); > } > d->str = &OLC_DESC(d)->description; > d->max_str = MAX_MESSAGE_LENGTH; > d->mail_to = 0; > OLC_VAL(d) = 1; > return; For some reason, OLC_DESC(d)->description is NULL is the problem. Take a look at what this value is in the above function. Their might be a bigger, badder bug causing this, but if not, you can prevent this from happening by changing the line: > d->backstr = str_dup(OLC_DESC(d)->description); to be : d->backstr = str_dup(OLC_DESC(d)->description ? OLC_DESC(d)->description : "(NULL)"); -Derek BTW, This was a great example for everyone of what to send to the list (and how to send it) in order to get an answer to your question (IMHO) -- \ | / \ /---------------------\ / -- dkarnes@mystech.com -- / \---------------------/ \ / | \ +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST