summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rfid_proto_tcl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rfid_proto_tcl.c b/src/rfid_proto_tcl.c
index e6735a8..2ed7a7c 100644
--- a/src/rfid_proto_tcl.c
+++ b/src/rfid_proto_tcl.c
@@ -259,7 +259,9 @@ tcl_do_pps(struct rfid_protocol_handle *h)
{
int ret;
unsigned char ppss[3];
- unsigned char pps_response[1];
+ /* FIXME: this stinks like hell. IF we reduce pps_response size to one,
+ we'll get stack corruption! */
+ unsigned char pps_response[10];
unsigned int rx_len = 1;
unsigned char Dr, Ds, DrI, DsI;
unsigned int speed;
personal git repositories of Harald Welte. Your mileage may vary