keymap: call strlen on keymap string instead of SIZE_MAX
authorRan Benita <ran234@gmail.com>
Wed, 9 Oct 2013 09:12:59 +0000 (12:12 +0300)
committerRan Benita <ran234@gmail.com>
Thu, 10 Oct 2013 19:02:30 +0000 (22:02 +0300)
commita45f531aa75676052f05e4cf2a2a1fae527a8416
tree6fab9f6e3e4bca87cc4c2b92b4e7b79bf3e70581
parentca0d388f99b90fd2e35c8cebd39cce9c741299bc
keymap: call strlen on keymap string instead of SIZE_MAX

I wanted to avoid the strlen, but we'd better keep the scanner a bit
less surprising and encourage people to use xkb_keymap_new_from_buffer()
instead of they do in fact have access to the size.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keymap.c
src/xkbcomp/scanner-utils.h