Re: Format String issue w/ patch

"Roman Hunt" <[email protected]> Thu, 14 Nov 2002 15:02:40 -0500
Newsgroups gmane.comp.gnu.octal.devel
Message-ID <[email protected]>
On 13 Nov 2002 20:00:07 -0500
  David O'Toole <[email protected]> wrote:
# There were two "%" characters because I wanted to print 
# out a single
# literal "%" (via fprintf to stderr.) Changing it to a 
# single percent
# character will actually introduce an error, since 
# fprintf will start
# looking for an argument, right...? 

it most certainly will but that's why I put in ...

- fprintf(stderr, message);
+ fprintf(stderr, "%s", message);

# 
# It seems I've got some inconsistency in the error 
# messages though,
# thanks for pointing that out. 
no prob I think the format strings presence in the fprintf 
call will allow you not worry about '%' escape sequences 
and allow it to print whatever is contained within the 
string.

# 
# A good portion of the core is messy because it uses 
# plain C for objects,
# which is error-prone and usually looks obfuscated. This 
# is the primary
# reason I've started re-writing it in Objective-C (you 
# might already
# notice some Objc files in the CVS repository, and more 
# are on the way.) 

Cool I am looking into learning objC now i hope I can 
help.

BTW sorry if this is the second time youve recieved this 
but I never saw my reply come back through the list.  Have 
a good day.  Anyone ever goto #octal on 
openprojects.net????

-roman