Fix from Gary Jennejohn - use 'cp' not 'buf' in read call. Oops.
Fix from Gary Jennejohn - use 'cp' not 'buf' in read call. Oops.

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