diff options
Diffstat (limited to 'net-libs/libprotoident/files/libprotoident-9999-lpi_find_unknown-snprintf.patch')
-rw-r--r-- | net-libs/libprotoident/files/libprotoident-9999-lpi_find_unknown-snprintf.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-libs/libprotoident/files/libprotoident-9999-lpi_find_unknown-snprintf.patch b/net-libs/libprotoident/files/libprotoident-9999-lpi_find_unknown-snprintf.patch new file mode 100644 index 000000000000..2378c37b9b99 --- /dev/null +++ b/net-libs/libprotoident/files/libprotoident-9999-lpi_find_unknown-snprintf.patch @@ -0,0 +1,22 @@ +--- a/tools/find_unknown/lpi_find_unknown.cc ++++ b/tools/find_unknown/lpi_find_unknown.cc +@@ -219,7 +219,7 @@ + dump_payload(ident->lpi, 0, pload_out, 500); + dump_payload(ident->lpi, 1, pload_in, 500); + str = (char *)malloc(750); +- snprintf(str, 1000, "%s %s %u %u %u %.3f %.3f %" PRIu64 " %" PRIu64 " %s %s\n", ++ snprintf(str, 750, "%s %s %u %u %u %.3f %.3f %" PRIu64 " %" PRIu64 " %s %s\n", + s_ip, c_ip, + f->id.get_server_port(), f->id.get_client_port(), + f->id.get_protocol(), ident->start_ts, +--- a/tools/protoident/lpi_protoident.cc ++++ b/tools/protoident/lpi_protoident.cc +@@ -214,7 +214,7 @@ + dump_payload(ident->lpi, 0, pload_out, 500); + dump_payload(ident->lpi, 1, pload_in, 500); + str = (char *)malloc(750); +- snprintf(str, 1000, "%s %s %s %u %u %u %.3f %.3f %" PRIu64 " %" PRIu64 " %s %s\n", ++ snprintf(str, 750, "%s %s %s %u %u %u %.3f %.3f %" PRIu64 " %" PRIu64 " %s %s\n", + proto->name, s_ip, c_ip, + f->id.get_server_port(), f->id.get_client_port(), + f->id.get_protocol(), ident->start_ts, |