kbd_helper fix yellow
Change-Id: Ib54b36760678e88d3857ba70b0f4d1e1661bb0ad
This commit is contained in:
parent
9e2eceeb33
commit
7f27d2dd52
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ int kbd_create_layout(char *layout, unsigned short *buf, int bufsz)
|
||||||
const unsigned char *p = layout;
|
const unsigned char *p = layout;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
pbuf = buf;
|
pbuf = buf;
|
||||||
while (*p && (pbuf - buf + sizeof(unsigned short)) < bufsz)
|
while (*p && (pbuf - buf + (ptrdiff_t) sizeof(unsigned short)) < bufsz)
|
||||||
{
|
{
|
||||||
p = rb->utf8decode(p, &pbuf[len+1]);
|
p = rb->utf8decode(p, &pbuf[len+1]);
|
||||||
if (pbuf[len+1] == '\n')
|
if (pbuf[len+1] == '\n')
|
||||||
|
|
Loading…
Reference in a new issue