summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index 0d480f50e8..0a7ae211d3 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -635,9 +635,9 @@ _ecore_wl2_input_key_send(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, xkb_
635 ev->compose = comp_len ? ev->key + key_len + 1 : NULL; 635 ev->compose = comp_len ? ev->key + key_len + 1 : NULL;
636 ev->string = ev->compose; 636 ev->string = ev->compose;
637 637
638 strcpy((char *)ev->keyname, keyname); 638 strncpy((char *)ev->keyname, keyname, key_len + 1);
639 strcpy((char *)ev->key, key); 639 strncpy((char *)ev->key, key, name_len + 1);
640 if (comp_len) strcpy((char *)ev->compose, compose); 640 if (comp_len) strncpy((char *)ev->compose, compose, comp_len +1);
641 641
642 ev->window = (Ecore_Window)window; 642 ev->window = (Ecore_Window)window;
643 ev->event_window = (Ecore_Window)window; 643 ev->event_window = (Ecore_Window)window;