diff options
author | Guillem Jover <guillem@hadrons.org> | 2009-05-15 21:23:03 +0200 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2009-05-15 21:23:03 +0200 |
commit | deb9f56ceb560f96448ff9bfa1befdf7ed9849de (patch) | |
tree | 1d19276539c75801de99280a4319621ab62fce0f /src/err.c | |
parent | aefc6f441aa1ae51135fea33d25572e39222cce7 (diff) | |
download | libbsd-deb9f56ceb560f96448ff9bfa1befdf7ed9849de.tar.gz |
Change fgetln to return the correct length value
Set len to 0 on error conditions to mimmic FreeBSD behaviour, and return
the amount of read characters on success, instead of the allocated size
by getline.
Reported-by: Jief L. <jief1.l@gmail.com>
Diffstat (limited to 'src/err.c')
0 files changed, 0 insertions, 0 deletions