aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tftp.c b/epan/dissectors/packet-tftp.c
index 214ad8d5cf..0a3f296176 100644
--- a/epan/dissectors/packet-tftp.c
+++ b/epan/dissectors/packet-tftp.c
@@ -781,7 +781,7 @@ dissect_embeddedtftp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
case TFTP_WRQ:
/* These 2 opcodes have a NULL-terminated source file name after opcode. Verify */
{
- gint char_offset = 1;
+ gint char_offset = 2;
while (tvb_captured_length_remaining(tvb, char_offset)) {
gchar c = (gchar)tvb_get_guint8(tvb, char_offset++);
if (c == '\0') {