summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packet.c b/src/packet.c
index 6057b56..3c3fb79 100644
--- a/src/packet.c
+++ b/src/packet.c
@@ -378,7 +378,7 @@ EAPI struct packet *packet_create(const char *cmd, const char *fmt, ...)
payload_size = sizeof(*packet->data) + BUFSIZ;
packet->refcnt = 0;
- packet->data = calloc(1, payload_size);
+ packet->data = calloc(1, BUFSIZ);
if (!packet->data) {
ErrPrint("Heap: %s\n", strerror(errno));
packet->state = INVALID;