Fix suspicious use of sizeof(char **), same as sizeof(char *) but not portable.

Coverity CID #56740, #56741, #56742

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix out-of-bounds access in user key binding routines.

Coverity CID #56737, #56738

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>