Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349209
b: refs/heads/master
c: 0a9ab9b
h: refs/heads/master
i:
  349207: 70300c4
v: v3
  • Loading branch information
Anderson Lizardo authored and Gustavo Padovan committed Jan 9, 2013
1 parent a5e1630 commit f30d4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2582d529c44d12502a700f1c3db062b9f44679bc
refs/heads/master: 0a9ab9bdb3e891762553f667066190c1d22ad62b
2 changes: 1 addition & 1 deletion trunk/net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ static int hidp_setup_hid(struct hidp_session *session,
hid->version = req->version;
hid->country = req->country;

strncpy(hid->name, req->name, 128);
strncpy(hid->name, req->name, sizeof(req->name) - 1);

snprintf(hid->phys, sizeof(hid->phys), "%pMR",
&bt_sk(session->ctrl_sock->sk)->src);
Expand Down

0 comments on commit f30d4d3

Please sign in to comment.