summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rpc-server/trex_rpc_zip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc-server/trex_rpc_zip.cpp b/src/rpc-server/trex_rpc_zip.cpp
index ef5c4834..f6da00ef 100644
--- a/src/rpc-server/trex_rpc_zip.cpp
+++ b/src/rpc-server/trex_rpc_zip.cpp
@@ -116,7 +116,7 @@ TrexRpcZip::compress(const std::string &input, std::string &output) {
header->magic = htonl(G_HEADER_MAGIC);
header->uncmp_size = htonl(input.size());
- output.append((const char *)header, bound_size);
+ output.append((const char *)header, sizeof(header_st) + destLen);
delete [] buffer;