Current-Users archive

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

Re: printf args checks



In article <20110823172432.GO602%ojctech.com@localhost>,
David Young  <dyoung%pobox.com@localhost> wrote:
>On Tue, Aug 23, 2011 at 07:13:55PM +0200, Manuel Bouyer wrote:
>> Hello,
>> I get (for evbmips64-el):
>> /dsk/l1/misc/bouyer/current/src/usr.bin/elf2ecoff/elf2ecoff.c: In
>function 'safe
>> write':
>> /dsk/l1/misc/bouyer/current/src/usr.bin/elf2ecoff/elf2ecoff.c:576:3:
>error: form
>> at not a string literal, argument types not checked
>> /dsk/l1/misc/bouyer/current/src/usr.bin/elf2ecoff/elf2ecoff.c:576:3:
>error: form
>> at not a string literal, argument types not checked
>
>Looks like it should be this, instead, and then the safewrite()/pad16()
>calls patched to remove ": %s" from the end of the 'msg' argument:

Correct! And use err{,x}( which I've already done.

christos



Home | Main Index | Thread Index | Old Index