summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-08-16 22:08:58 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-08-16 22:08:58 +0000
commitf82a7a65e85f97580e934e98a58c1e2d050c55bf (patch)
tree4a0d4b11492cf59f90e90405880906637bdc6ee7 /src
parentb80d2b99aa9e633e8e4d7234b37893f4b137e7f7 (diff)
ugly workaround to avoid stack overflow
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1869 e0336214-984f-0b4b-a45f-81c69e1f0ede
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