Wait. The first parameter of memset is definitely treating remains as a measure of bytes.