Commit deb9f56ceb560f96448ff9bfa1befdf7ed9849de

Guillem Jover 2009-05-15T21:23:03

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>