summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/mac_set.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-03-07 13:13:17 +0000
committerrwatson <rwatson@FreeBSD.org>2008-03-07 13:13:17 +0000
commit56315a2bc3947503a7241f0b679890f0d3ff54fe (patch)
treec930445d919e3cc3dee3f930cbdd31bb97dfc71d /lib/libc/posix1e/mac_set.c
parent2dc85bfeba957eff1fa91b725d81a43e6999f244 (diff)
downloadFreeBSD-src-56315a2bc3947503a7241f0b679890f0d3ff54fe.zip
FreeBSD-src-56315a2bc3947503a7241f0b679890f0d3ff54fe.tar.gz
Reserve two bytes at the end of the DDB input line in db_readline() to
hold the newline and nul terminator. Otherwise, there are cases where garbage may end up in the command history due to a lack of a nul terminator, or input may end up without room for a newline. MFC after: 3 days PR: 119079 Submitted by: Michael Plass <mfp49_freebsd@plass-family.net>
Diffstat (limited to 'lib/libc/posix1e/mac_set.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud