Change internal xrealloc() to a idiom-following xreallocarray().
authorderaadt <deraadt@openbsd.org>
Wed, 29 Apr 2015 04:00:25 +0000 (04:00 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 29 Apr 2015 04:00:25 +0000 (04:00 +0000)
commit371275cabfe7ee71db4f4e23b9a5d966b335d3bc
tree09cf87945bdcad26b880cf103ee5c9a520f7f53a
parent608b009282d598aa865148d83ca1fbc1fd10f065
Change internal xrealloc() to a idiom-following xreallocarray().
This loses a "new size is 0" failure case.  Probably not relevant;
and since we develop this in OpenBSD, we'll catch that before someone
else imports this...
ok millert
usr.bin/diff/diff.c
usr.bin/diff/diffreg.c
usr.bin/diff/xmalloc.c
usr.bin/diff/xmalloc.h