Manually specify fgets buffer to allow for safe deletion