Sponsored link Serve your customers, not your servers, with VERIO Linux VPS. Full-access test-drive here. |
Buggifying critical core modulesBuggifying critical core modulesPosted Mar 20, 2008 11:14 UTC (Thu) by BenHutchings (subscriber, #37955)In reply to: Buggifying critical core modules by dw Parent article: Who maintains dpkg?
Another varargs type problem: sizeof() returns size_t, but %d expects an int. You should use %zu to format values of type size_t.
(Log in to post comments)
Buggifying critical core modules Posted Mar 20, 2008 11:58 UTC (Thu) by dw (subscriber, #12017) [Link] Hah, I was waiting for that. :) Seems you can't complain about type widths and then go write an invalid printf!
Buggifying critical core modules Posted Mar 20, 2008 23:54 UTC (Thu) by nix (subscriber, #2304) [Link] ... unless you want your program to be portable to any of the large number of extant systems that don't support %z in printf(). (Linux/glibc systems have supported it for ages, of course, but it's the only system I'm writing code for right now that does.)
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.