summaryrefslogtreecommitdiff
path: root/libthor/thor_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libthor/thor_usb.c')
-rw-r--r--libthor/thor_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libthor/thor_usb.c b/libthor/thor_usb.c
index fbb35aa..b43870b 100644
--- a/libthor/thor_usb.c
+++ b/libthor/thor_usb.c
@@ -555,7 +555,7 @@ int t_usb_send_req(struct thor_device_handle *th, request_type req_id,
if (sdata) {
for (i = 0; i < scnt; i++)
- strcpy(req.str_data[i],sdata[i]);
+ strncpy(req.str_data[i], sdata[i], 32);
}
ret = t_usb_send(th, (unsigned char *)&req, RQT_PKT_SIZE, DEFAULT_TIMEOUT);