projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27e2066
)
action: fix printing of underflowed value in error message
author
Ran Benita
<ran234@gmail.com>
Sat, 8 Feb 2014 13:05:05 +0000
(15:05 +0200)
committer
Ran Benita
<ran234@gmail.com>
Sat, 8 Feb 2014 13:05:05 +0000
(15:05 +0200)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/action.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/action.c
b/src/xkbcomp/action.c
index
86acdf2
..
a1a8188
100644
(file)
--- 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;
-
in
t 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;
}