Fix arguments to `fwrite`