Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] FW: [Wireshark-commits] rev 54772: /trunk/epan/dissectors/ /

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 14 Jan 2014 02:56:12 -0800
On Jan 14, 2014, at 2:01 AM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:

> Casting to
> 				g_snprintf(string_buffer_temp, (gulong)string_buffer_size,
> Seems to do the trick on Win7

Oh, right, sorry, it'd have been been too easy for the GLib people to model g_snprintf() after snprintf():

	$ man snprintf

		...

	     int
	     snprintf(char * restrict str, size_t size, const char * restrict format,
	         ...);

and use gsize (assuming that there was a good reason to have gsize, rather than size_t, in the first place), so they used gulong, just to be different.