aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipsec.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-09 16:30:05 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-05-09 16:30:05 +0000
commitd077d3b7048b7b6139c3f0e7967b03c3699061ab (patch)
tree5cbf668c2ce1996d4f56a5ec8800ef92728dc447 /epan/dissectors/packet-ipsec.c
parent72b76ec585891737438a002887b2e01e35d7dcb7 (diff)
Null-terminate the hex-to-text-converted string.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25266 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ipsec.c')
-rw-r--r--epan/dissectors/packet-ipsec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ipsec.c b/epan/dissectors/packet-ipsec.c
index 7249953120..b8f2968321 100644
--- a/epan/dissectors/packet-ipsec.c
+++ b/epan/dissectors/packet-ipsec.c
@@ -1184,6 +1184,7 @@ compute_ascii_key(gchar **ascii_key, gchar *key)
key_byte |= (guchar)hex_digit;
(*ascii_key)[j] = key_byte;
}
+ (*ascii_key)[j] = '\0';
}
else
@@ -1225,6 +1226,7 @@ compute_ascii_key(gchar **ascii_key, gchar *key)
key_byte |= (guchar)hex_digit;
(*ascii_key)[j] = key_byte;
}
+ (*ascii_key)[j] = '\0';
}
}