diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-02-09 18:41:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-02-09 18:41:06 +0000 |
commit | 518e27bc00fb772f66ebab2970c7e22ef2531563 (patch) | |
tree | 558434f2a32d573fbea6c86cdde2fb455257b08a /plugins | |
parent | 4e4cf2b9a5edc4a3446bc56d0960424dba020bc5 (diff) | |
download | wireshark-518e27bc00fb772f66ebab2970c7e22ef2531563.tar.gz wireshark-518e27bc00fb772f66ebab2970c7e22ef2531563.tar.bz2 wireshark-518e27bc00fb772f66ebab2970c7e22ef2531563.zip |
The type of the second argument to g_snprintf() is gulong. (It *should*
have been size_t, just as with Boring Old Snprintf; what were they
thinking?)
svn path=/trunk/; revision=47588
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/asn1/packet-asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c index 3f3b4c38ab..82bd349b2d 100644 --- a/plugins/asn1/packet-asn1.c +++ b/plugins/asn1/packet-asn1.c @@ -1118,7 +1118,7 @@ decode_asn1_sequence(tvbuff_t *tvb, guint offset, guint tlen, proto_tree *pt, in cls = BER_CLASS_UNI; tag = BER_UNI_TAG_GeneralString; oname = g_malloc(strlen(name) + 32); - g_snprintf(oname, (int)strlen(name) + 32, "%s ** nesting cut off **", name); + g_snprintf(oname, (gulong)(strlen(name) + 32), "%s ** nesting cut off **", name); name = oname; } switch(cls) { @@ -3659,7 +3659,7 @@ tbl_type(gint n, GNode *pdu, GNode *list, guint fullindex) /* indent, pdu, sourc } static void -PDUtext(char *txt, int txt_size, PDUinfo *info) /* say everything we know about this entry */ +PDUtext(char *txt, gulong txt_size, PDUinfo *info) /* say everything we know about this entry */ { PDUinfo *rinfo; const char *tt, *nn, *tn, *fn, *oo, *ii, *an, *tr, *ty; |