Speed up safe_fprintf by copying to a temp buffer, then writing blocks at a time, rather than using putc().
Speed up safe_fprintf by copying to a temp buffer, then writing
blocks at a time, rather than using putc().

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase