freebsd-skq/bin
truckman 7f608aeba9 Explicitly NUL terminate the buffer filled by fread().
The fix in r300649 was not sufficient to convince Coverity that the
buffer was NUL terminated, even with the buffer pre-zeroed.  Swap
the size and nmemb arguments to fread() so that a valid lenght is
returned, which we can use to terminate the string in the buffer
at the correct location.  This should also quiet the complaint about
the return value of fread() not being checked.

Reported by:	Coverity
CID:		1019054, 1009614
MFC after:	1 week
2016-06-08 05:32:39 +00:00
..
cat Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
chflags
chio
chmod
cp
csh DIRDEPS_BUILD: Run the staged bootstrap-tools version of build-tools. 2016-05-09 22:21:09 +00:00
date Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
dd Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
df
domainname
echo
ed Close the input FILE * in read_file() and the output FILE * in write_file() 2016-05-25 18:38:30 +00:00
expr Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
freebsd-version MFH 2016-04-04 23:55:32 +00:00
getfacl
hostname
kenv
kill
ln
ls Use require.progs with bc instead of require.files with /usr/bin/bc 2016-05-29 04:50:49 +00:00
mkdir
mv Close from_fd if malloc() fails to avoid a file descriptor leak. 2016-05-25 02:51:15 +00:00
pax Rename getline with get_line to avoid collision with getline(3) 2016-05-10 11:11:23 +00:00
pkill Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
ps ps(1): Expand variables to match expanded fields 2016-06-01 19:54:05 +00:00
pwait
pwd
rcp MFH 2016-04-12 17:00:13 +00:00
realpath
rm
rmail
rmdir
setfacl Explicitly NUL terminate the buffer filled by fread(). 2016-06-08 05:32:39 +00:00
sh sh: Improve descriptions in 'ulimit -a' output. 2016-06-05 16:09:31 +00:00
sleep Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
stty
sync
test Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
uuidgen
Makefile
Makefile.inc