Now using sizeof() in memcpy