diff options
author | Gerald Combs <gerald@wireshark.org> | 2003-04-30 02:35:28 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2003-04-30 02:35:28 +0000 |
commit | 0b9bbbbdb6cf76403a4e9d94a74668429dea89ae (patch) | |
tree | b94c51a362b4d129f4b3800dfba39f4e3ffadb3d /plugins/megaco | |
parent | 5174f6075ed8661fe0ee9a97a7b485b685e2b3e7 (diff) |
Modify tvb_get_nstringz*() to behave more like snprintf(). Make changes
where necessary to reflect the new behavior.
svn path=/trunk/; revision=7607
Diffstat (limited to 'plugins/megaco')
-rw-r--r-- | plugins/megaco/packet-megaco.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/megaco/packet-megaco.c b/plugins/megaco/packet-megaco.c index 8e5686db8a..7bfe43507d 100644 --- a/plugins/megaco/packet-megaco.c +++ b/plugins/megaco/packet-megaco.c @@ -2,7 +2,7 @@ * Routines for megaco packet disassembly * RFC 3015 * - * $Id: packet-megaco.c,v 1.4 2003/01/24 21:07:43 jmayer Exp $ + * $Id: packet-megaco.c,v 1.5 2003/04/30 02:35:26 gerald Exp $ * * Christian Falckenberg, 2002/10/17 * Copyright (c) 2002 by Christian Falckenberg @@ -140,7 +140,7 @@ dissect_megaco_text(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * for the MEGACO string. This needs to be improved when supporting * binary encodings. */ - if(!tvb_get_nstringz0(tvb,0,6,word)) return; + if(!tvb_get_nstringz0(tvb,0,sizeof(word),word)) return; if (strncasecmp(word, "MEGACO", 6) != 0) return; /* Display MEGACO in protocol column */ |