Mercurial > pidgin
diff src/protocols/jabber/si.c @ 11656:f9c5480ad0ce
[gaim-migrate @ 13940]
The poster of 1253287 says FreeBSD does have a z printf modifier. Someone commented that Solaris doesn't either. I don't know either way, but we use G_GSIZE_FORMAT elsewhere, so I figured it was worth a shot. I rooted out several %z format strings and changed them. It compiles for me. I make no guarantees past that.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 13 Oct 2005 19:53:09 +0000 |
parents | 8dca96cbcd64 |
children | cbebda5f019c |
line wrap: on
line diff
--- a/src/protocols/jabber/si.c Thu Oct 13 03:23:38 2005 +0000 +++ b/src/protocols/jabber/si.c Thu Oct 13 19:53:09 2005 +0000 @@ -518,7 +518,7 @@ xmlnode_set_attrib(file, "xmlns", "http://jabber.org/protocol/si/profile/file-transfer"); xmlnode_set_attrib(file, "name", xfer->filename); - g_snprintf(buf, sizeof(buf), "%zu", xfer->size); + g_snprintf(buf, sizeof(buf), "%" G_GSIZE_FORMAT, xfer->size); xmlnode_set_attrib(file, "size", buf); /* maybe later we'll do hash and date attribs */