mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246860
@ -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