X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/44c01adf506b1087bff724dcb65b92a12b012836..9275549093fd4bae96f4119e7b66dd3cc6478e78:/gnupgparse.c diff --git a/gnupgparse.c b/gnupgparse.c index 56f9061..9de18eb 100644 --- a/gnupgparse.c +++ b/gnupgparse.c @@ -108,7 +108,7 @@ static void fix_uid (char *uid) memcpy (uid, buf, ob-buf); uid[ob-buf] = '\0'; } - else if (ob-buf == n && (buf[n] = 0, strlen (buf) < n)) + else if (n >= 0 && ob-buf == n && (buf[n] = 0, strlen (buf) < (size_t)n)) memcpy (uid, buf, n); } FREE (&buf);