freebsd-src/usr.bin/patch
Pedro F. Giffuni 547e0acbec patch: Bring in xstrdup and use it when appropriate.
The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Clean up some whitespaces while here

Obtained from:	OpenBSD
MFC after:	2 weeks
2014-12-25 21:51:28 +00:00
..
backupfile.c
backupfile.h
common.h patch(1): avoid line number overflows 2014-12-08 15:10:48 +00:00
inp.c
inp.h
Makefile Drop build option switch for the older GNU patch. 2013-08-29 00:38:24 +00:00
mkpath.c
patch.1 patch: add dry-run alias for compatibility with other implementations. 2014-06-15 16:38:17 +00:00
patch.c patch: Bring in xstrdup and use it when appropriate. 2014-12-25 21:51:28 +00:00
pathnames.h
pch.c patch: Bring in xstrdup and use it when appropriate. 2014-12-25 21:51:28 +00:00
pch.h patch: unsign the line length to avoid overflows. 2014-06-15 03:54:23 +00:00
util.c patch: Bring in xstrdup and use it when appropriate. 2014-12-25 21:51:28 +00:00
util.h patch: Bring in xstrdup and use it when appropriate. 2014-12-25 21:51:28 +00:00