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