From c6404d9344b2a50bf52a28e1263499f7f6075013 Mon Sep 17 00:00:00 2001 From: avsm Date: Tue, 15 Apr 2003 18:44:11 +0000 Subject: [PATCH] plug a buffer in cpha packet processing, submitted upstream, jakob@ ok --- net/ethereal/patches/patch-packet-cpha_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net/ethereal/patches/patch-packet-cpha_c diff --git a/net/ethereal/patches/patch-packet-cpha_c b/net/ethereal/patches/patch-packet-cpha_c new file mode 100644 index 00000000000..c111652a1dc --- /dev/null +++ b/net/ethereal/patches/patch-packet-cpha_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-packet-cpha_c,v 1.1 2003/04/15 18:44:11 avsm Exp $ +--- packet-cpha.c.orig Tue Apr 15 16:51:02 2003 ++++ packet-cpha.c Tue Apr 15 16:51:40 2003 +@@ -237,7 +237,7 @@ dissect_cpha(tvbuff_t *tvb, packet_info + hdr.filler = g_ntohs(hdr.filler); + opcode = g_ntohs(hdr.opcode); + +- snprintf(info,50,"CPHAv%d: %s",g_ntohs(hdr.ha_protocol_ver), opcode2str_short(opcode)); ++ snprintf(info, sizeof info, "CPHAv%d: %s",g_ntohs(hdr.ha_protocol_ver), opcode2str_short(opcode)); + if (check_col(pinfo->cinfo, COL_INFO)) + col_add_str(pinfo->cinfo, COL_INFO,info); +