see: https://github.com/ppshobi/psonic/pull/23 I think `fgets` could be replaced with a buffer size from enviroment