svn commit: r246950 - in stable: 7/usr.bin/mail 8/usr.bin/mail 9/usr.bin/mail
Dimitry Andric
dim at FreeBSD.org
Mon Feb 18 22:03:05 UTC 2013
Author: dim
Date: Mon Feb 18 22:03:04 2013
New Revision: 246950
URL: http://svnweb.freebsd.org/changeset/base/246950
Log:
MFC r246860:
Fix undefined behaviour in usr.bin/mail/util.c.
Reported by: deeptech71 at gmail.com
Modified:
stable/9/usr.bin/mail/util.c
Directory Properties:
stable/9/usr.bin/mail/ (props changed)
Changes in other areas also in this revision:
Modified:
stable/7/usr.bin/mail/aux.c
stable/8/usr.bin/mail/util.c
Directory Properties:
stable/7/usr.bin/mail/ (props changed)
stable/8/usr.bin/mail/ (props changed)
Modified: stable/9/usr.bin/mail/util.c
==============================================================================
--- stable/9/usr.bin/mail/util.c Mon Feb 18 20:21:26 2013 (r246949)
+++ stable/9/usr.bin/mail/util.c Mon Feb 18 22:03:04 2013 (r246950)
@@ -236,8 +236,8 @@ istrncpy(char *dest, const char *src, si
{
strlcpy(dest, src, dsize);
- while (*dest)
- *dest++ = tolower((unsigned char)*dest);
+ for (; *dest; dest++)
+ *dest = tolower((unsigned char)*dest);
}
/*
More information about the svn-src-stable-9
mailing list