summaryrefslogtreecommitdiff
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
parentc6f41d8e10515f214e6a27237e927280e4bb3957 (diff)
downloadefl-74bd1d4000d82d1cd66a639ddabfbe13573ef881.tar.gz
efl-wl: mmap byte for nul terminator in keymap string
CID 1377545
-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)
eina_file_unlink(file);
eina_tmpstr_del(file);
s->kbd.keymap_mem =
- mmap(NULL, s->kbd.keymap_mem_size,
+ mmap(NULL, s->kbd.keymap_mem_size + 1,
PROT_READ | PROT_WRITE, MAP_SHARED, s->kbd.keymap_fd, 0);
memcpy(s->kbd.keymap_mem, str, s->kbd.keymap_mem_size);