From 6900e561ff2b0f63ab3b59498d403a80865c1ac6 Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Fri, 24 Feb 2006 22:05:05 +0000 Subject: Use the same size buffer for holding the send packet as the receive packet. --- sockutil.c | 4 ++-- 1 file 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); -- cgit