Fix bug: can not write to /dev/pairchar

Change 'memcpy' to 'memset' in testchar_init