Re: That amd64 segfault again
Thomas Jacob <[email protected]>
| Newsgroups | gmane.mail.spam.spf.devel |
|---|---|
| Message-ID | <1174901100.15689.20.camel@enterprise> |
As long as you are only adding this patch to the Debian package, I shouldn't think that there is a portability problem, Debian uses the same glibc version on all its support platforms, or don't they? But generally I think that I would be more portable if you just used %d and a type cast, the numbers involved should always be less than MAX_INT, and explicit type casting like that shouldn't break code anywhere... On Sat, 2007-03-24 at 10:38 +0100, Magnus Holmgren wrote: > I thought I should attach the patch I'm about to apply to libspf2 in Debian. I > started with the patch posted by Thomas Jacob to the Debian bug report > (http://bugs.debian.org/392793) and merged with the one from Herbert Straub. > Then I moved the changes that just cast the arguments to SPF_Infof() and > SPF_Debugf() into a separate patch and instead changed the format strings. > But how portable is the z flag to printf()? (From the manpage: "A following > integer conversion corresponds to a size_t or ssize_t argument."). ------- To unsubscribe, change your address, or temporarily deactivate your subscription, please go to http://v2.listbox.com/member/?list_id=1007
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBGB5FrgF9cFv867HwRAkd4AKDAK38avH3JsJb5LVNNJFtq9q8SqACfWiXG asAALj/xC8qULzCRJrydRWM= =lXQ9 -----END PGP SIGNATURE-----