aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pvfs2.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-01-14 10:50:26 +0000
committerGuy Harris <guy@alum.mit.edu>2014-01-14 10:50:26 +0000
commite2b668efe769286e3bdcfce7da7040851f4ca10d (patch)
tree4c13986d878259743455d9da3ecde797fa35ea49 /epan/dissectors/packet-pvfs2.c
parentecdc8646561af52fdc7ac7ac78b978bc97e481cd (diff)
Whoever in GLibland was responsible for defining the signature of
g_snprintf() owes the world a huge apology. They *could* have just used size_t, or they *could* at least have, if they insisted on having GLib types to mirror regular types, made gsize an alias for size_t and, whatever they did with gsize, they *could* have used it as the argument for the size of the buffer for g_snprintf(), but no, they had to use gulong. svn path=/trunk/; revision=54781
Diffstat (limited to 'epan/dissectors/packet-pvfs2.c')
-rw-r--r--epan/dissectors/packet-pvfs2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pvfs2.c b/epan/dissectors/packet-pvfs2.c
index 9d69fcf82e..03f3d908e7 100644
--- a/epan/dissectors/packet-pvfs2.c
+++ b/epan/dissectors/packet-pvfs2.c
@@ -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, (gsize)string_buffer_size,
+ g_snprintf(string_buffer_temp, (gulong)string_buffer_size,
"%s<TRUNCATED>", formatted);
/* append <TRUNCATED> */
/* This way, we get the TRUNCATED even