Re: Bug fix!

From: Alex (fletchra@qsilver.queensu.ca)
Date: 08/27/02


> This is the offending line:
>
>       send_to_char(ch, "%c%s", UPPER(*i->player.short_descr),
> i->player.short_descr);
>
>      send_to_char(ch, "%s", CAP(i->player.short_descr));
This is bad because it changes the original string.  A better fix would
be:
       send_to_char(ch, "%c%s", UPPER(*i->player.short_descr),
                    i->player.short_descr+1);

Ae.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT