suggestion: memcpy is more safe but it isn't your case