Fix fflush(0) by correctly flushing stdout.

Corrects the fflush(0) bug introduced during the screencast but
subsequently fixed during the editing process. fflush(0) is undefined.
Replaced with fflush(stdout).