attr value was only getting one byte allocated instead of 1 * sizeof(nhwchar), so add required paranthesis.