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

Reported by:	deeptech71@gmail.com
MFC after:	3 days
This commit is contained in:
Dimitry Andric 2013-02-15 23:59:57 +00:00
parent 3cbc324925
commit ca83b97532

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);
}
/*