Re: [Circle][Code][Bug] % formatting

From: Alex (fletchra@qsilver.queensu.ca)
Date: 11/01/02


>         I found another little '%' bug. I think it's the same "format
> string
> error" problem as this:
>
> http://post.queensu.ca/cgi-bin/listserv/wa?A2=ind0209&L=circle&P=R10455&
> X=16D1991F2F22372CD0&Y=dlanor@xs4all.nl
>
> In lib/text/news it says: "..at 25% greater than..". This gets messed
> up if you type news on the mud: "at 25 1.87673e-152reater".
Most interesting.

> The problem is in db.c:file_to_string() I think, I just don't know how
> to fix this one.
It's likely not there.  It's actually probably in the output where it does
something like:

send_to_char(ch, news_file)

you should change it to something like:

send_to_char(ch, "%s", news_file)

Actually, it might be a page function.  I don't recall offhand. :)

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