Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144833
b: refs/heads/master
c: 0f43158
h: refs/heads/master
i:
  144831: ddaa80f
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed May 9, 2009
1 parent dc930d1 commit fbe5ea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 72a772a9a3da47e1cdbe01c4aa1105aa8badfff2
refs/heads/master: 0f43158caddcbb110916212ebe4e39993ae70864
6 changes: 3 additions & 3 deletions trunk/drivers/usb/gadget/usbstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static int utf8_to_utf16le(const char *s, __le16 *cp, unsigned len)
uchar = (c & 0x1f) << 6;

c = (u8) *s++;
if ((c & 0xc0) != 0xc0)
if ((c & 0xc0) != 0x80)
goto fail;
c &= 0x3f;
uchar |= c;
Expand All @@ -49,13 +49,13 @@ static int utf8_to_utf16le(const char *s, __le16 *cp, unsigned len)
uchar = (c & 0x0f) << 12;

c = (u8) *s++;
if ((c & 0xc0) != 0xc0)
if ((c & 0xc0) != 0x80)
goto fail;
c &= 0x3f;
uchar |= c << 6;

c = (u8) *s++;
if ((c & 0xc0) != 0xc0)
if ((c & 0xc0) != 0x80)
goto fail;
c &= 0x3f;
uchar |= c;
Expand Down

0 comments on commit fbe5ea9

Please sign in to comment.