Fix undefined behaviour in usr.bin/mail/util.c.
Reported by: deeptech71@gmail.com MFC after: 3 days
This commit is contained in:
parent
cea4bd3ed0
commit
f4e7f0ad5a
@ -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