Denis Vlasenko abee3d0e0d Fix xmalloc_fgets_str so that it really does NOT strip terminator.
Add xmalloc_fgetline_str which does strip terminator,
and use it in dpkg instead of xmalloc_fgets_str.
netstat: use xmalloc_fgets_str - allows to eat strings with NULs
(this fixes bug with some weird /proc/net/unix input)

function                                             old     new   delta
xmalloc_fgets_internal                                 -     191    +191
xmalloc_fgetline_str                                   -      18     +18
do_info                                              116     120      +4
unix_do_one                                          451     447      -4
tcp_do_one                                           423     419      -4
send_tree                                            369     365      -4
xmalloc_fgets_str                                    178      15    -163
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/4 up/down: 213/-175)           Total: 38 bytes
   text    data     bss     dec     hex filename
 778445     832    7344  786621   c00bd busybox_old
 778483     832    7344  786659   c00e3 busybox_unstripped
2007-12-26 20:44:45 +00:00
..
2007-12-24 12:16:24 +00:00
2007-06-30 10:58:08 +00:00
2007-05-31 22:42:12 +00:00
2006-12-26 18:17:42 +00:00
2007-11-04 04:10:17 +00:00
2006-10-28 12:37:16 +00:00
2007-12-02 03:27:42 +00:00
2006-11-29 18:15:52 +00:00
2007-08-13 10:36:25 +00:00
2006-12-16 22:18:44 +00:00
2007-05-31 22:42:12 +00:00
2007-08-03 14:16:24 +00:00
2007-05-30 00:29:55 +00:00
2007-10-14 04:55:59 +00:00
2007-09-29 22:49:26 +00:00
2007-06-18 10:35:06 +00:00
2007-05-31 22:42:12 +00:00
2007-10-29 19:22:13 +00:00
2007-05-30 00:29:55 +00:00
2007-06-12 20:54:54 +00:00

Please see the LICENSE file for copyright information (GPLv2)

libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen
	<andersen@codepoet.org>