Permalink
Browse files

x11: use ARRAY_SIZE macro.

  • Loading branch information...
1 parent 400b58e commit 11a3bf4db43811b8c315835190dd2bf398262fe0 @llyzs llyzs committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/X11/xf_keyboard.c
View
@@ -55,7 +55,7 @@ void xf_kbd_release_all_keypress(xfInfo* xfi)
int keycode;
RDP_SCANCODE rdp_scancode;
- for (keycode = 0; keycode < sizeof(xfi->pressed_keys) / sizeof(xfi->pressed_keys[0]); keycode++)
+ for (keycode = 0; keycode < ARRAY_SIZE(xfi->pressed_keys); keycode++)
{
if (xfi->pressed_keys[keycode] != NoSymbol)
{

0 comments on commit 11a3bf4

Please sign in to comment.