Re: [ MOBProgs ] Annoying bug?

From: Chris Jacobson (fear@ATHENET.NET)
Date: 11/23/97


On 11/23/97 5:42 AM, David Klasinc
(bigwhale@CAPYBARA.SK-PTTSC.LJ.EDUS.SI) stated:

>       break;
>      default:
>         log("Error in file %s", f);
>         pMobIndex->progtypes = pMobIndex->progtypes | mprg2->type;
>
>... the rest is not important ...

Wierd, mine is:

                        sprintf(buf, "Error in file %s", f);
                        pMobIndex->progtypes    = pMobIndex->progtypes | mprg2->type;
#ifdef AUTORESTORE_PATCH
                        mprg2->arglist                  = fread_string(progfile, buf, MOBProgfile);
                        mprg2->comlist                  = fread_string(progfile, buf, MOBProgfile);
#else
                        mprg2->arglist                  = fread_string(progfile, buf);
                        mprg2->comlist                  = fread_string(progfile, buf);
#endif

It sprintf's it to a buf for later usage because fread_string and such
will log it on an error... very very wierd.

- Chris Jacobson


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