--- muttlib.c +++ muttlib.c 2007-05-16 09:26:24.607110614 +0000 @@ -537,8 +537,8 @@ char *mutt_gecos_name (char *dest, size_ if (dest[idx] == '&') { memmove (&dest[idx + pwnl], &dest[idx + 1], - MAX(destlen - idx - pwnl - 1, 0)); - memcpy (&dest[idx], pw->pw_name, MIN(destlen - idx - 1, pwnl)); + MAX((ssize_t)(destlen - idx - pwnl - 1), 0)); + memcpy (&dest[idx], pw->pw_name, MIN((ssize_t)(destlen - idx - 1), pwnl)); dest[idx] = toupper ((unsigned char) dest[idx]); } }