client: avoid doing a signed vs. unsigned comparison

This commit is contained in:
Daniel Eklöf 2020-11-21 20:29:47 +01:00
parent f2a88d6071
commit 0b3a84bd9c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;