Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215131
b: refs/heads/master
c: efc463e
h: refs/heads/master
i:
  215129: 99d7ce2
  215127: 397a71a
v: v3
  • Loading branch information
Samuel Ortiz authored and Samuel Ortiz committed Oct 11, 2010
1 parent 50183cc commit 859fbb7
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 3b06dbbeadb6488cd00999b61b080bb6f0218503
refs/heads/master: efc463eb508798da4243625b08c7396462cabf9f
4 changes: 3 additions & 1 deletion trunk/net/irda/parameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi,

p.pi = pi; /* In case handler needs to know */
p.pl = buf[1]; /* Extract length of value */
if (p.pl > 32)
p.pl = 32;

IRDA_DEBUG(2, "%s(), pi=%#x, pl=%d\n", __func__,
p.pi, p.pl);
Expand All @@ -318,7 +320,7 @@ static int irda_extract_string(void *self, __u8 *buf, int len, __u8 pi,
(__u8) str[0], (__u8) str[1]);

/* Null terminate string */
str[p.pl+1] = '\0';
str[p.pl] = '\0';

p.pv.c = str; /* Handler will need to take a copy */

Expand Down

0 comments on commit 859fbb7

Please sign in to comment.