Lock and unlock the file once per call and use the unlocked version of ungetc() instead of having ungetc() recurse on the lock.
Lock and unlock the file once per call and use the unlocked version of
ungetc() instead of having ungetc() recurse on the lock.

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