Diff between 8afe1baa7dd5e864a1d1eff2f6c793dba2a3acfb and 332695078487a91376d8dd5ab9f8121118ab63b7

Changed Files

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

Full Patch

diff --git a/profiles/input/device.c b/profiles/input/device.c
index d867cca..8461478 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -667,10 +667,10 @@ static void epox_endian_quirk(unsigned char *data, int size)
 
 static int create_hid_dev_name(sdp_record_t *rec, struct hidp_connadd_req *req)
 {
-	char sdesc[sizeof(req->name)];
+	char sdesc[sizeof(req->name) / 2];
 
 	if (sdp_get_service_desc(rec, sdesc, sizeof(sdesc)) == 0) {
-		char pname[sizeof(req->name)];
+		char pname[sizeof(req->name) / 2];
 
 		if (sdp_get_provider_name(rec, pname, sizeof(pname)) == 0 &&
 						strncmp(sdesc, pname, 5) != 0)