summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-04-07 15:26:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-04-30 14:54:35 +1000
commit57811e40f0dac5d357267837f4b18d16943bf4e1 (patch)
tree0e2a224bac8470b3826ed0a07e170c321f0571fb
parent354df8bce9874e92de2ad8535fdcedaec0755b27 (diff)
downloadlibinput-57811e40f0dac5d357267837f4b18d16943bf4e1.tar.gz
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>
-rw-r--r--tools/libinput-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libinput-record.c b/tools/libinput-record.c
index f04d5cde..3ad593fc 100644
--- 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