summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fwprintf.c
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2008-09-09 16:00:17 +0000
committerrdivacky <rdivacky@FreeBSD.org>2008-09-09 16:00:17 +0000
commit817c519713d426e0159692b3c5ffa2d36325a5ad (patch)
treee54fea4d864cc2015b0c9912653035b7e62b9cec /lib/libc/stdio/fwprintf.c
parent73a287b49184cc4b7cc4c689ada9fd5cb5ccc884 (diff)
downloadFreeBSD-src-817c519713d426e0159692b3c5ffa2d36325a5ad.zip
FreeBSD-src-817c519713d426e0159692b3c5ffa2d36325a5ad.tar.gz
Getdents requires padding with 2 bytes instead of 1 byte
as with getdents64. The last byte is used for storing the d_type, add this to plain getdents case where it was missing before. Also change the code to use strlcpy instead of plain strcpy. This changes fix the getdents crash we had reports about (hl2 server etc.) PR: kern/117010 MFC after: 1 week Submitted by: Dmitry Chagin (dchagin@) Tested by: MITA Yoshio <mita ee.t.u-tokyo.ac jp> Approved by: kib (mentor)
Diffstat (limited to 'lib/libc/stdio/fwprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud