From 98697f1958dc73f8b48f022dd016e2cb0d5271c6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 23 Aug 2003 17:02:48 +0000 Subject: [PATCH] Prevention of buffer overflows... --- src/pr_generic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pr_generic.cpp b/src/pr_generic.cpp index b9658e2ca..9892541d1 100644 --- a/src/pr_generic.cpp +++ b/src/pr_generic.cpp @@ -553,7 +553,7 @@ void generic_packetizer_c::dump_packet(const void *buffer, int size) { if (dump_packets == NULL) return; - path = (char *)safemalloc(strlen(dump_packets) + 1 + 15); + path = (char *)safemalloc(strlen(dump_packets) + 1 + 30); mxprints(path, "%s/%u-%010lld", dump_packets, hserialno, dumped_packet_number); dumped_packet_number++;