From: M. R. B. <mr...@0x...> - 2001-12-06 15:25:36
|
* Robert Love <rm...@te...> on Thu, Dec 06, 2001: >=20 > The attached patch fixes the problems. There may be more. _Please_ > merge into CVS. Applied to branch and head - thanks! M. R. > --- linux/drivers/char/maple_keyb.c.orig Thu Dec 6 01:39:45 2001 > +++ linux/drivers/char/maple_keyb.c Thu Dec 6 01:40:48 2001 > @@ -55,7 +55,7 @@ > =20 > for(i=3D2; i<8; i++) { > =20 > - if(kbd->old[i]>3&&memscan(kbd->new+2, kbd->old[i], 6)=3D=3DNULL) { > + if(kbd->old[i]>3&&memchr(kbd->new+2, kbd->old[i], 6)=3D=3DNULL) { > if(dc_kbd_keycode[kbd->old[i]]) > input_report_key(dev, > dc_kbd_keycode[kbd->old[i]], > @@ -65,7 +65,7 @@ > kbd->old[i]); > } > =20 > - if(kbd->new[i]>3&&memscan(kbd->old+2, kbd->new[i], 6)!=3DNULL) { > + if(kbd->new[i]>3&&memchr(kbd->old+2, kbd->new[i], 6)!=3DNULL) { > if(dc_kbd_keycode[kbd->new[i]]) > input_report_key(dev, > dc_kbd_keycode[kbd->new[i]], |