summaryrefslogtreecommitdiffstats
path: root/sockutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'sockutil.c')
-rw-r--r--sockutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sockutil.c b/sockutil.c
index a571d64..68a207d 100644
--- a/sockutil.c
+++ b/sockutil.c
@@ -125,8 +125,8 @@ send_packet(int fd, struct qa_packet *qp)
int packetsize;
ssize_t ret;
- packetbuf = malloc(1024);
- memset(packetbuf, 0, 1024);
+ packetbuf = malloc(QARSH_MAX_PACKET_SIZE);
+ memset(packetbuf, 0, QARSH_MAX_PACKET_SIZE);
packetbuf = qptostr(qp, &packetbuf, &packetsize);
ret = write(fd, packetbuf, packetsize);