diff options
-rw-r--r-- | sockutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |