rules: use strlen_safe

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2013-10-08 22:58:28 +03:00
parent efe5b036ee
commit fbed22e881
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ matcher_new(struct xkb_context *ctx,
m->ctx = ctx; m->ctx = ctx;
m->rmlvo.model.start = rmlvo->model; m->rmlvo.model.start = rmlvo->model;
m->rmlvo.model.len = rmlvo->model ? strlen(rmlvo->model) : 0; m->rmlvo.model.len = strlen_safe(rmlvo->model);
m->rmlvo.layouts = split_comma_separated_string(rmlvo->layout); m->rmlvo.layouts = split_comma_separated_string(rmlvo->layout);
m->rmlvo.variants = split_comma_separated_string(rmlvo->variant); m->rmlvo.variants = split_comma_separated_string(rmlvo->variant);
m->rmlvo.options = split_comma_separated_string(rmlvo->options); m->rmlvo.options = split_comma_separated_string(rmlvo->options);