Fix undefined behaviour in usr.bin/mail/util.c.
Reported by: deeptech71@gmail.com MFC after: 3 days
This commit is contained in:
parent
3cbc324925
commit
ca83b97532
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user