aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ftp.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2003-04-30 02:35:28 +0000
committerGerald Combs <gerald@wireshark.org>2003-04-30 02:35:28 +0000
commit0b9bbbbdb6cf76403a4e9d94a74668429dea89ae (patch)
treeb94c51a362b4d129f4b3800dfba39f4e3ffadb3d /packet-ftp.c
parent5174f6075ed8661fe0ee9a97a7b485b685e2b3e7 (diff)
downloadwireshark-0b9bbbbdb6cf76403a4e9d94a74668429dea89ae.tar.gz
wireshark-0b9bbbbdb6cf76403a4e9d94a74668429dea89ae.tar.bz2
wireshark-0b9bbbbdb6cf76403a4e9d94a74668429dea89ae.zip
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 'packet-ftp.c')
-rw-r--r--packet-ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ftp.c b/packet-ftp.c
index cac6717701..d4dbb9b945 100644
--- a/packet-ftp.c
+++ b/packet-ftp.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* Copyright 2001, Juan Toledo <toledo@users.sourceforge.net> (Passive FTP)
*
- * $Id: packet-ftp.c,v 1.50 2003/02/25 19:27:19 guy Exp $
+ * $Id: packet-ftp.c,v 1.51 2003/04/30 02:35:19 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -335,7 +335,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* One-line reply, or first or last line
* of a multi-line reply.
*/
- tvb_get_nstringz0(tvb, offset, 3, code_str);
+ tvb_get_nstringz0(tvb, offset, sizeof(code_str), code_str);
code = strtoul(code_str, NULL, 10);
if (tree) {