summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-13 09:48:29 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-13 09:48:29 +0000
commitaeb513680eccb0aa4062f63d7b5ae7725d83b848 (patch)
tree1d0e26d99d6972c3b1bd07c67842fa95429d32c8
parent889f6a15061857fda1b16d396f615364db3e38e6 (diff)
increased SNDBUF_SIZE to prevent overflow
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1816 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--src/rfid_reader_cm5121.c6
1 files changed, 3 insertions, 3 deletions
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,
personal git repositories of Harald Welte. Your mileage may vary