diff options
author | Ran Benita <ran234@gmail.com> | 2014-02-08 15:05:05 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2014-02-08 15:05:05 +0200 |
commit | bbd2a9c0487c6d3c704bb3bafef1256cba38b6f9 (patch) | |
tree | dba76cdb6d63b4523f7b133a2d7aa5f37ad9b7e1 /src/xkbcomp | |
parent | 27e20662292688639a3a141c843b99e12fc7fe11 (diff) | |
download | libxkbcommon-bbd2a9c0487c6d3c704bb3bafef1256cba38b6f9.tar.gz libxkbcommon-bbd2a9c0487c6d3c704bb3bafef1256cba38b6f9.tar.bz2 libxkbcommon-bbd2a9c0487c6d3c704bb3bafef1256cba38b6f9.zip |
action: fix printing of underflowed value in error message
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp')
-rw-r--r-- | src/xkbcomp/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xkbcomp/action.c b/src/xkbcomp/action.c index 86acdf2..a1a8188 100644 --- a/src/xkbcomp/action.c +++ b/src/xkbcomp/action.c @@ -772,7 +772,7 @@ HandlePrivate(struct xkb_keymap *keymap, union xkb_action *action, if (array_ndx == NULL) { xkb_atom_t val; const char *str; - int len; + size_t len; if (!ExprResolveString(keymap->ctx, value, &val)) return ReportMismatch(keymap, action->type, field, "string"); @@ -782,7 +782,7 @@ HandlePrivate(struct xkb_keymap *keymap, union xkb_action *action, if (len < 1 || len > 7) { log_warn(keymap->ctx, "A private action has 7 data bytes; " - "Extra %d bytes ignored\n", len - 6); + "Illegal data ignored\n"); return false; } |