freebsd-skq/usr.bin/tail
Tai-hwa Liang e7356456ed Nuking the temporary pointer once it is properly tracked in local storage.
This should fix the double free() bug where there's no tailing newline(\n)
character:

	current# echo -n test | tail
	testAssertion failed: (run->magic == ARENA_RUN_MAGIC), function
	arena_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 2448.
	Abort (core dumped)

Reviewed by:	kib
MFC after:	3 days
2007-11-22 01:51:46 +00:00
..
extern.h Add a -q option to suppress header lines when multiple files are specified. 2006-06-29 22:07:49 +00:00
forward.c Better handle the -F case: 2006-10-21 18:05:06 +00:00
Makefile Bump WARNS to 4 as this seems OK on the alpha now. 2005-01-10 20:22:37 +00:00
misc.c Cast size_t to off_t before adding them to avoid warnings on the alpha. 2005-01-10 20:19:46 +00:00
read.c Nuking the temporary pointer once it is properly tracked in local storage. 2007-11-22 01:51:46 +00:00
reverse.c initialize variables, WARNS=6 compliant 2007-11-02 18:06:51 +00:00
tail.1 Markup revision. 2006-12-24 19:18:52 +00:00
tail.c initialize variables, WARNS=6 compliant 2007-11-02 18:06:51 +00:00