Wireshark mailing list archives

Re: FW: [Wireshark-commits] rev 54772: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-pvfs2.c


From: Guy Harris <guy () alum mit edu>
Date: Tue, 14 Jan 2014 02:56:12 -0800


On Jan 14, 2014, at 2:01 AM, Anders Broman <anders.broman () ericsson com> 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.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: