aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2004-12-21 03:50:14 +0000
committerGerald Combs <gerald@wireshark.org>2004-12-21 03:50:14 +0000
commit687a2d71ebce41c7bca2c79bbe28b4fa94a3a087 (patch)
tree708cb1c3da4f6929edd20ad45c02d7c122739da3 /epan/dissectors
parentf774652d9bc2389c5e12dc90d1dbd8f1aa4db191 (diff)
Fix an off-by-one error when terminating a string.
svn path=/trunk/; revision=12796
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-t38.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-t38.c b/epan/dissectors/packet-t38.c
index b7d05daa2a..06327f5ce1 100644
--- a/epan/dissectors/packet-t38.c
+++ b/epan/dissectors/packet-t38.c
@@ -233,7 +233,7 @@ void t38_add_address(packet_info *pinfo,
* Update the conversation data.
*/
strncpy(p_conv_data->method, setup_method, MAX_T38_SETUP_METHOD_SIZE);
- p_conv_data->method[MAX_T38_SETUP_METHOD_SIZE] = '\0';
+ p_conv_data->method[MAX_T38_SETUP_METHOD_SIZE - 1] = '\0';
p_conv_data->frame_number = setup_frame_number;
}