summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl/efl_wl.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-12 12:00:52 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-12 11:59:20 -0400
commit74bd1d4000d82d1cd66a639ddabfbe13573ef881 (patch)
tree279cdf63007086c768367547bce776e4baab9375 /src/lib/efl_wl/efl_wl.c
parentc6f41d8e10515f214e6a27237e927280e4bb3957 (diff)
efl-wl: mmap byte for nul terminator in keymap string
CID 1377545
Diffstat (limited to '')
-rw-r--r--src/lib/efl_wl/efl_wl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index a119b9c735..76db17eea5 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -3493,7 +3493,7 @@ seat_keymap_update(Comp_Seat *s)
3493 eina_file_unlink(file); 3493 eina_file_unlink(file);
3494 eina_tmpstr_del(file); 3494 eina_tmpstr_del(file);
3495 s->kbd.keymap_mem = 3495 s->kbd.keymap_mem =
3496 mmap(NULL, s->kbd.keymap_mem_size, 3496 mmap(NULL, s->kbd.keymap_mem_size + 1,
3497 PROT_READ | PROT_WRITE, MAP_SHARED, s->kbd.keymap_fd, 0); 3497 PROT_READ | PROT_WRITE, MAP_SHARED, s->kbd.keymap_fd, 0);
3498 3498
3499 memcpy(s->kbd.keymap_mem, str, s->kbd.keymap_mem_size); 3499 memcpy(s->kbd.keymap_mem, str, s->kbd.keymap_mem_size);