Import of r39883 from trunk. Don't write out \0. Let teh compiler count (use sizeof()). Fixes problem on Windows ssh'ing to Linux.
Changed paths: