Re: Circle Snapshot + Oasis -pre11

From: Chris Gilbert (chris@buzzbee.freeserve.co.uk)
Date: 06/04/99


George Greer wrote:

> CircleMUD Fixes:
>
> * VMS updates and a few minor changes.

noticed bug with the latest patch, if a drink container doesn't have
more than one alias the mud won't boot.

the patch is in check_object:
 case ITEM_DRINKCON:
 {
 char onealias[MAX_INPUT_LENGTH], *space = strchr(obj->name, ' ');
+int n = space ? (space-obj->name) : strlen(obj->name);

-strncpy(onealias, obj->name, space - obj->name);
-onealias[space - obj->name] = '\0';
+strncpy(onealias, obj->name, n);
+onealias[n] = '\0';
 if (search_block(onealias, drinknames, TRUE) < 0 && (error = TRUE))

Cheers,
Chris


     +------------------------------------------------------------+
     | 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