Skip to content

Commit

Permalink
Fix comparison signedness warnings.
Browse files Browse the repository at this point in the history
--HG--
branch : HEAD
  • Loading branch information
mandree committed Aug 6, 2010
1 parent d5a6356 commit 4526c08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnupgparse.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion pop_auth.c
Expand Up @@ -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;
Expand Down

0 comments on commit 4526c08

Please sign in to comment.