diff options
-rw-r--r-- | gnupgparse.c | 2 | ||||
-rw-r--r-- | pop_auth.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gnupgparse.c b/gnupgparse.c index 56f9061f..9de18ebd 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); @@ -178,7 +178,7 @@ static pop_auth_res_t pop_auth_apop (POP_DATA *pop_data, const char *method) unsigned char digest[16]; char hash[33]; char buf[LONG_STRING]; - int i; + size_t i; if (!pop_data->timestamp) return POP_A_UNAVAIL; |