Fixed buffer length here as BUFSIZ may be too small on some systems

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>