[Circle][Code][Bug] % formatting

From: Ronald Evers (dlanor@xs4all.nl)
Date: 11/01/02


Hey folks,

        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".
The problem is in db.c:file_to_string() I think, I just don't know how
to fix this one.

I tried feeding the compiler with "-Wformat -Wformat-nonliteral" but
this doesn't show up as an error.

Anyone have a briliant idea on how to fix this?
Oh almost forgot: patchlevel21.


Thanks in advance,

 Ronald

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