Glib, gotta love it. No, gusize isn't the same as size_t, it's long,
authorGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 07:58:18 +0000 (07:58 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 07:58:18 +0000 (07:58 -0000)
which is Too Damn Short on Windows.  (Microsoft, gotta love 'em.  I
guess even more Windows programmers than UN*X programmers thought long
was 32 bits, now and forever, world without end, amen.)

svn path=/trunk/; revision=54771

epan/dissectors/packet-pvfs2.c

index 2a7cfe38e628e164762d691922ea068a55bf3e9d..d8aac79f166bc3e085386db6f432f43cde07c885 100644 (file)
@@ -899,7 +899,7 @@ dissect_pvfs_opaque_data(tvbuff_t *tvb, int offset,
                                /* alloc maximum data area */
                                string_buffer_temp = (char*) wmem_alloc(wmem_packet_scope(), string_buffer_size);
                                /* copy over the data */
-                               g_snprintf(string_buffer_temp, string_buffer_size,
+                               g_snprintf(string_buffer_temp, (gusize)string_buffer_size,
                                                "%s<TRUNCATED>", formatted);
                                /* append <TRUNCATED> */
                                /* This way, we get the TRUNCATED even