_e_gesture_device_keydev_create();
gesture->device.kbd_name = strdup(E_GESTURE_KEYBOARD_NAME);
}
- else if (strncmp(option, "Any", sizeof("Any")))
+ else if (strncmp(option, "Any", sizeof("Any") + 1))
{
gesture->device.kbd_name = strdup(option);
}
{
if (gesture->device.kbd_name)
{
- if (!strncmp(ev->name, gesture->device.kbd_name, strlen(gesture->device.kbd_name)))
+ if (!strncmp(ev->name, gesture->device.kbd_name, strlen(gesture->device.kbd_name) + 1))
{
GTINF("%s(%s) device is key generated device in gesture\n", ev->name, ev->identifier);
gesture->device.kbd_identifier = strdup(ev->identifier);
{
EINA_LIST_FOREACH_SAFE(gesture->device.touch_devices, l, l_next, data)
{
- if (!strncmp(data, ev->identifier, strlen(ev->identifier)))
+ if (!strncmp(data, ev->identifier, strlen(ev->identifier) + 1))
{
GTINF("%s(%s) device is touch device: remove list\n", ev->name, ev->identifier);
gesture->device.touch_devices = eina_list_remove(gesture->device.touch_devices, data);
if ((gesture->device.kbd_identifier) &&
(ev->clas == ECORE_DEVICE_CLASS_KEYBOARD))
{
- if (!strncmp(ev->name, gesture->device.kbd_name, strlen(gesture->device.kbd_name)))
+ if (!strncmp(ev->name, gesture->device.kbd_name, strlen(gesture->device.kbd_name) + 1))
{
GTWRN("Gesture keyboard device(%s) is disconnected. Gesture cannot create key events\n", gesture->device.kbd_name);
E_FREE(gesture->device.kbd_identifier);