Corrected a few potential buffer overruns that might be caused by some nefarious server mods...