Diff between 282258bb306d631216bad7efc2d3c7d2f0d60f53 and 21acf2283cacf0c029f2cea82380f4744a1dbcb5

Changed Files

File Additions Deletions Status
profiles/input/device.c +1 -1 modified

Full Patch

diff --git a/profiles/input/device.c b/profiles/input/device.c
index 9ab7509..6c152f3 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -212,7 +212,7 @@ static void extract_hid_record(sdp_record_t *rec, struct hidp_connadd_req *req)
 	if (pdlist) {
 		if (pdlist2) {
 			if (strncmp(pdlist->val.str, pdlist2->val.str, 5)) {
-				strncpy(req->name, pdlist2->val.str, 127);
+				strncpy(req->name, pdlist2->val.str, 126);
 				strcat(req->name, " ");
 			}
 			strncat(req->name, pdlist->val.str, 127 - strlen(req->name));