Fix undefined behaviour in usr.bin/mail/util.c.

Reported by:	deeptech71@gmail.com
MFC after:	3 days
This commit is contained in:
dim 2013-02-15 23:59:57 +00:00
parent cea4bd3ed0
commit f4e7f0ad5a

View File

@ -236,8 +236,8 @@ istrncpy(char *dest, const char *src, size_t dsize)
{
strlcpy(dest, src, dsize);
while (*dest)
*dest++ = tolower((unsigned char)*dest);
for (; *dest; dest++)
*dest = tolower((unsigned char)*dest);
}
/*