Though this doesn't result in any bad behavior at the moment, it
could cause some serious headaches in the future.

Signed-off-by: Jason Gerecke <killert...@gmail.com>
---
 src/wcmXCommand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c
index 4f702b7..29b20ab 100644
--- a/src/wcmXCommand.c
+++ b/src/wcmXCommand.c
@@ -300,7 +300,7 @@ static void wcmUpdateButtonKeyActions(DeviceIntPtr dev, 
XIPropertyValuePtr prop,
        for (i = 0; i < prop->size; i++)
        {
                /* keys is one based array to align with X buttons */
-               memset(keys[i+1], 0, sizeof(keys[i]));
+               memset(keys[i+1], 0, sizeof(keys[i+1]));
 
                if (!values[i])
                        continue;
-- 
1.7.1


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to