freebsd-src/usr.bin/patch
Pedro F. Giffuni c56f3a33d6 MFC r276218:
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
2015-01-08 03:44:54 +00:00
..
backupfile.c
backupfile.h
common.h MFC r275553, r275612; 2014-12-16 21:13:55 +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 MFC r267512: 2014-06-22 20:29:51 +00:00
patch.c MFC r276218: 2015-01-08 03:44:54 +00:00
pathnames.h
pch.c MFC r276218: 2015-01-08 03:44:54 +00:00
pch.h MFC r267490: 2014-06-22 20:24:17 +00:00
util.c MFC r276218: 2015-01-08 03:44:54 +00:00
util.h MFC r276218: 2015-01-08 03:44:54 +00:00