octal-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Format String issue w/ patch


From: Roman Hunt
Subject: Re: Format String issue w/ patch
Date: Thu Nov 14 15:29:01 2002

On 13 Nov 2002 20:00:07 -0500
 David O'Toole <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]