On 9/10/07, Adrian McMenamin <[email protected]> wrote:
> +
> + for (i = 0; i < NR_SCANCODES; i++)
> + memcpy(kbd->keycode + i * sizeof(unsigned char), dc_kbd_keycode + i
> * sizeof(unsigned char),
> + sizeof(unsigned char));
Ahem... That's not what I had in mind when I asked for memcpy. How about:
memcpy(kbd->keycode, dc_kbd_keycode, sizeof(kbd->keycode);
?
Thanks.
--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]