Diff between 9b4912ecf815b0483d539073b1ec2eaddc5a7613 and 72b4b435587e54519cdd4dd48a455f223cac249b
Changed Files
| File | Additions | Deletions | Status |
| profiles/input/hog-lib.c | +1 | -1 | modified |
Full Patch
diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 0884ef7..e376c2b 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -1018,7 +1018,7 @@ static void report_map_read_cb(guint8 status, const guint8 *pdu, guint16 plen,
return;
}
- strcpy((char *) ev.u.create.name, hog->name);
+ strncpy((char *) ev.u.create.name, hog->name, sizeof(ev.u.create.name));
ev.u.create.vendor = hog->vendor;
ev.u.create.product = hog->product;
ev.u.create.version = hog->version;