Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243235
b: refs/heads/master
c: d370af0
h: refs/heads/master
i:
  243233: 9583312
  243231: 37f9550
v: v3
  • Loading branch information
Dan Rosenberg authored and David S. Miller committed Mar 28, 2011
1 parent 2da527d commit 73ea534
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d50e7e3604778bfc2dc40f440e0742dbae399d54
refs/heads/master: d370af0ef7951188daeb15bae75db7ba57c67846
6 changes: 6 additions & 0 deletions trunk/net/irda/iriap.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,16 @@ static void iriap_getvaluebyclass_indication(struct iriap_cb *self,
n = 1;

name_len = fp[n++];

IRDA_ASSERT(name_len < IAS_MAX_CLASSNAME + 1, return;);

memcpy(name, fp+n, name_len); n+=name_len;
name[name_len] = '\0';

attr_len = fp[n++];

IRDA_ASSERT(attr_len < IAS_MAX_ATTRIBNAME + 1, return;);

memcpy(attr, fp+n, attr_len); n+=attr_len;
attr[attr_len] = '\0';

Expand Down

0 comments on commit 73ea534

Please sign in to comment.