]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r197259
authorsepotvin <sepotvin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 24 Sep 2009 20:43:08 +0000 (20:43 +0000)
committersepotvin <sepotvin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 24 Sep 2009 20:43:08 +0000 (20:43 +0000)
commit4d6168a3e3e78f945e6ee6357ae6fb9273e4241b
treecde3e0d6e6886fda6d10728233bed85e325f6693
parent4b59c9108f4200d8fb72c13ef00cba701c6a403f
MFC r197259

The buffer returned by fgetln is not a "C" string and might not be NUL
terminated. Make sure that it is before using it.

Reviewed by:    marck@
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@197472 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
gnu/usr.bin/patch/common.h
gnu/usr.bin/patch/pch.c