Date: Thu, 14 Jun 2007 14:44:04 +0000 (UTC) From: Yar Tikhiy <yar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/atrun atrun.c Message-ID: <200706141444.l5EEi46M068026@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yar 2007-06-14 14:44:04 UTC
FreeBSD src repository
Modified files:
libexec/atrun atrun.c
Log:
Fix a typical off-by-one error that can result in an unterminated string:
strncpy(dst, src, sizeof(dst));
by substituting the safer strlcpy() for strncpy().
X-Security: none (the source string isn't user-supplied)
Revision Changes Path
1.20 +1 -1 src/libexec/atrun/atrun.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706141444.l5EEi46M068026>
