kyb_helper small 'bug' fix
Change-Id: Ia91a662262497c1a93ce8f26902aab5921ee7185
This commit is contained in:
parent
f30f1bb467
commit
9e2eceeb33
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;
|
||||
int len = 0;
|
||||
pbuf = buf;
|
||||
while (*p && (pbuf - buf + 8) < bufsz)
|
||||
while (*p && (pbuf - buf + sizeof(unsigned short)) < bufsz)
|
||||
{
|
||||
p = rb->utf8decode(p, &pbuf[len+1]);
|
||||
if (pbuf[len+1] == '\n')
|
||||
|
|
Loading…
Reference in a new issue