mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 11:10:29 +01:00
tools/record: fix a strlen assumption
We want to be able to print single-character strings. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
354df8bce9
commit
57811e40f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue