summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/pcd/rc632.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/src/pcd/rc632.c')
-rw-r--r--openpcd/firmware/src/pcd/rc632.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpcd/firmware/src/pcd/rc632.c b/openpcd/firmware/src/pcd/rc632.c
index 9fc7428..620d0a0 100644
--- a/openpcd/firmware/src/pcd/rc632.c
+++ b/openpcd/firmware/src/pcd/rc632.c
@@ -397,7 +397,7 @@ static int rc632_usb_in(struct req_ctx *rctx)
break;
case OPENPCD_CMD_READ_FIFO:
{
- u_int16_t req_len = poh->val, remain_len, pih_len;
+ u_int16_t req_len = poh->val, remain_len = req_len, pih_len;
if (req_len > MAX_PAYLOAD_LEN) {
pih_len = MAX_PAYLOAD_LEN;
remain_len -= pih_len;
personal git repositories of Harald Welte. Your mileage may vary