Prevention of buffer overflows...

This commit is contained in:
Moritz Bunkus 2003-08-23 17:02:48 +00:00
parent 3768e44f1a
commit 98697f1958

View File

@ -553,7 +553,7 @@ void generic_packetizer_c::dump_packet(const void *buffer, int size) {
if (dump_packets == NULL) if (dump_packets == NULL)
return; 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, mxprints(path, "%s/%u-%010lld", dump_packets, hserialno,
dumped_packet_number); dumped_packet_number);
dumped_packet_number++; dumped_packet_number++;