aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isakmp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-05-25 19:37:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-05-25 19:37:36 +0000
commitffda0d01c4f201db5b52054eda8091c2aac44aa0 (patch)
tree437ad1c40d445c37cbd3be647108478d78b735bb /packet-isakmp.c
parent98294741b0b27388259cecf59eff2a17c3ce03b5 (diff)
The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7740 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-isakmp.c')
-rw-r--r--packet-isakmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-isakmp.c b/packet-isakmp.c
index ac335d00d7..4e8360a476 100644
--- a/packet-isakmp.c
+++ b/packet-isakmp.c
@@ -4,7 +4,7 @@
* for ISAKMP (RFC 2407)
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-isakmp.c,v 1.63 2003/05/25 16:49:47 gerald Exp $
+ * $Id: packet-isakmp.c,v 1.64 2003/05/25 19:37:36 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1133,7 +1133,7 @@ situation2str(guint32 type) {
ret = snprintf(msg, SIT_MSG_NUM-n, "%sIDENTITY", sep);
if (ret == -1 || ret >= SIT_MSG_NUM-n) {
/* Truncated. */
- msg[SIT_MSG_NUM] = '\0';
+ msg[SIT_MSG_NUM-1] = '\0';
return msg;
}
n += ret;
@@ -1147,7 +1147,7 @@ situation2str(guint32 type) {
ret = snprintf(msg, SIT_MSG_NUM-n, "%sSECRECY", sep);
if (ret == -1 || ret >= SIT_MSG_NUM-n) {
/* Truncated. */
- msg[SIT_MSG_NUM] = '\0';
+ msg[SIT_MSG_NUM-1] = '\0';
return msg;
}
n += ret;
@@ -1161,7 +1161,7 @@ situation2str(guint32 type) {
ret = snprintf(msg, SIT_MSG_NUM-n, "%sINTEGRITY", sep);
if (ret == -1 || ret >= SIT_MSG_NUM-n) {
/* Truncated. */
- msg[SIT_MSG_NUM] = '\0';
+ msg[SIT_MSG_NUM-1] = '\0';
return msg;
}
n += ret;