From aeb513680eccb0aa4062f63d7b5ae7725d83b848 Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 13 Jun 2006 09:48:29 +0000 Subject: increased SNDBUF_SIZE to prevent overflow git-svn-id: https://svn.gnumonks.org/trunk/librfid@1816 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/rfid_reader_cm5121.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rfid_reader_cm5121.c b/src/rfid_reader_cm5121.c index 697ac64..2acc267 100644 --- a/src/rfid_reader_cm5121.c +++ b/src/rfid_reader_cm5121.c @@ -41,9 +41,9 @@ /* FIXME */ #include "rc632.h" -//#define SENDBUF_LEN 40 -#define SENDBUF_LEN 100 -#define RECVBUF_LEN 40 +#define SENDBUF_LEN 256+7+10 /* 256bytes max FSD/FSC, plus 7 bytes header, + plus 10 bytes reserve */ +#define RECVBUF_LEN SENDBUF_LEN static int Write1ByteToReg(struct rfid_asic_transport_handle *rath, -- cgit v1.2.3