aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-21 19:29:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-21 19:29:47 +0000
commit0b3a84bd9cc6a9756c530b26035d474b81255ddd (patch)
treefe16c6d62424fa18201e5149b1148e61ef5d5096
parentserver: verify strings are NULL terminated (diff)
client: avoid doing a signed vs. unsigned comparison
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 2adf0d5a..1bdfc205 100644
--- a/client.c
+++ b/client.c
@@ -256,7 +256,7 @@ main(int argc, char *const *argv)
term_len >= 1 << (8 * sizeof(data.term_len)) ||
title_len >= 1 << (8 * sizeof(data.title_len)) ||
app_id_len >= 1 << (8 * sizeof(data.app_id_len)) ||
- argc > data.argc)
+ argc > (int)(unsigned int)data.argc)
{
LOG_ERR("size overflow");
goto err;