svn commit: r200633 - head/usr.bin/uniq

David Schultz das at FreeBSD.ORG
Fri Jan 8 16:45:32 UTC 2010


On Thu, Dec 17, 2009, Jaakko Heinonen wrote:
>   Sync getline() with comm(1):
>   
>    - Prevent overflowing of the buffer length variable in getline() by
>      limiting its maximum value.
>    - Exit if reallocf(3) fails in getline(). Failure was silently
>      considered as end-of-file.

We should consider using getline(3) from libc, rather than
hand-rolled versions of almost the same thing that are copy-pasted
in multiple places.  The only catch is I need to check in the wide
character version of getline() I've had sitting in my tree for
months.  I'll try to get on that this weekend.


More information about the svn-src-all mailing list