]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r292454, r292455
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 Dec 2015 18:37:01 +0000 (18:37 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 26 Dec 2015 18:37:01 +0000 (18:37 +0000)
commit1eb2ff482aaa2a3b5196350bff680249e6acbf7d
treefeaadf346a93ed1d4a88cff547cf39c02a8d3272
parent1995af5d2f2c8fe297bc835d449e890eefa1d7f3
MFC r292454, r292455
ed(1): Prevent possible string overflows

Use strlcpy to guarantee NULL termination.

With hint from: imp, cem, ngie
CID: 1007252

git-svn-id: svn://svn.freebsd.org/base/stable/10@292754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/ed/main.c