X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/647ac5444d022537a1f0854dd309494c511dfe07..c5b192a33a305c26dfc056daa813c9a5d435da43:/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);