changes buffer check to make sure there is zero data left before exiting.
changes buffer check to make sure there is zero data left before exiting.

MMORPGCreation/Developers-Engine,MMORPGCreation/Developers-Engine,MMORPGCreation/Developers-Engine