only write number of bytes read instead of full buffer of null