Re: [CODE] Restring

From: Xual (xual@danathara.dhs.org)
Date: 03/05/99


On Fri, 5 Mar 1999, Christoffer Lundberg wrote:

> Ok, I added the following lines to objsave.c in the
> "Obj_from_store_to" function:
>
> obj->name = str_dup(object.name);
> obj->short_description = str_dup(object.short_desc);
> obj->description = str_dup(object.long_desc);
>
> and the following to "Obj_to_store_from":
>
> object.name = str_dup(obj->name);
> object.short_desc = str_dup(obj->short_description);
> object.long_desc = str_dup(obj->description);
>
>
> But, when I attempt to log on a char owning an object
> (restringed or not) the MUD crashes and the .core file
> tells me there is an error in the str_dup function.

Did you remember to wipe your rent files?

"Misery is boundless"
        -Xual the Torturer, on the Eve of the Sundering.

Danathara Online RPG
telnet://danathara.dhs.org:4000


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST