diff options
author | ngie <ngie@FreeBSD.org> | 2016-05-13 08:41:09 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-05-13 08:41:09 +0000 |
commit | 9fae7d4024a8055d666d3d9561f5026db41a56ca (patch) | |
tree | b0872cfdf17b08932ac3cf950ef3c27a31a15674 /lib/libkvm/kvm_proc.c | |
parent | 521c8bcab1ab7f570e5d9e5933dacb78a660c21f (diff) | |
download | FreeBSD-src-9fae7d4024a8055d666d3d9561f5026db41a56ca.zip FreeBSD-src-9fae7d4024a8055d666d3d9561f5026db41a56ca.tar.gz |
MFC r298337:
r298337 (by cem):
pty(4): Use strlcpy to guarantee destination buffer isn't overrun
The devtoname() name is strcpyed into a small stack buffer. Sure, we always
expect the name to be ttyXX (or ptyXX). If that's the case, strlcpy() doesn't
hurt.
CID: 1006768
Diffstat (limited to 'lib/libkvm/kvm_proc.c')
0 files changed, 0 insertions, 0 deletions