From 3b1e4fd549f7242d657b10f2810d32555f67835c Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Wed, 29 Jul 2009 20:36:54 +0000 Subject: [PATCH] Fix pointer access. Thanks to Blub for spotting, I would've certainly spent a lot of time finding this one! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31940 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/input/usb_hid/ProtocolHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/input/usb_hid/ProtocolHandler.cpp b/src/add-ons/kernel/drivers/input/usb_hid/ProtocolHandler.cpp index 1080d39be0..96303f2aa5 100644 --- a/src/add-ons/kernel/drivers/input/usb_hid/ProtocolHandler.cpp +++ b/src/add-ons/kernel/drivers/input/usb_hid/ProtocolHandler.cpp @@ -89,7 +89,7 @@ ProtocolHandler::AddHandlers(HIDDevice *device, ProtocolHandler ***handlerList, for (uint32 i = 0; i < count; i++) { if (handlers[i] != NULL) - *handlerList[(*handlerCount)++] = handlers[i]; + (*handlerList)[(*handlerCount)++] = handlers[i]; } TRACE("added %ld handlers for hid device\n", *handlerCount);