projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
354df8b
)
tools/record: fix a strlen assumption
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 7 Apr 2021 05:26:16 +0000
(15:26 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 30 Apr 2021 04:54:35 +0000
(14:54 +1000)
We want to be able to print single-character strings.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-record.c
patch
|
blob
|
history
diff --git
a/tools/libinput-record.c
b/tools/libinput-record.c
index
f04d5cd
..
3ad593f
100644
(file)
--- a/
tools/libinput-record.c
+++ b/
tools/libinput-record.c
@@
-180,7
+180,7
@@
iprintf(FILE *fp,
int rc;
assert(indent < len);
- assert(strlen(format) > 1);
+ assert(strlen(format) >
=
1);
/* Special case: if we're printing a new list item, we want less
* indentation because the '- ' takes up one level of indentation