]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ed(1): Prevent possible string overflows
authorpfg <pfg@FreeBSD.org>
Fri, 18 Dec 2015 23:05:36 +0000 (23:05 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 18 Dec 2015 23:05:36 +0000 (23:05 +0000)
commit690479eac41bea3965d72f8f50f29dc4576b616c
tree8447d61ce0b26c9604c55d494d241c2357a316aa
parent0ba92f8ec128fc6965986160d6115ebd38484371
ed(1): Prevent possible string overflows

Use strlcpy instead of strncpy to guarantee NULL termination.

Pointed out by: imp
CID: 1007252
X-MFC with: r292454
bin/ed/main.c