CVSROOT: /cvs Module name: src Changes by: bry...@cvs.openbsd.org 2017/07/02 04:58:15
Modified files: usr.bin/file : magic-load.c Log message: Replace fgetln with POSIX getline, even though file was using fgetln in the idiomatic safe way. Also, check for stream errors with ferror and err(1, "") in that case. with feedback from joerg@, schwarze@, nicm@ ok nicm "code is shorter anyway", and joerg@ for an earlier diff