diff src/evdev-plug/ed_ui.c @ 1170:96cc46b1cf5e trunk

[svn] - fix a possible allocation overflow issue. found while merging to 1.3 stable.
author nenolod
date Thu, 07 Jun 2007 08:28:08 -0700
parents 0cc6b35fbeb4
children 78861d8b86f2
line wrap: on
line diff
--- a/src/evdev-plug/ed_ui.c	Thu Jun 07 06:34:42 2007 -0700
+++ b/src/evdev-plug/ed_ui.c	Thu Jun 07 08:28:08 2007 -0700
@@ -780,7 +780,7 @@
             {
               /* the trigger-dialog window is open; record input and
                store it in a container managed by the trigger-dialog itself */
-              ed_inputevent_t *dinputev = g_malloc(sizeof(ed_inputevent_t*));
+              ed_inputevent_t *dinputev = g_malloc(sizeof(ed_inputevent_t));
               dinputev->type = inputev.type;
               dinputev->code = inputev.code;
               dinputev->value = inputev.value;