unicode follow up
attr value was only getting one byte allocated instead of 1 * sizeof(nhwchar), so add required paranthesis.
This commit is contained in:
@@ -2067,7 +2067,7 @@ tty_putstr_core(window, attr, symstr)
|
||||
n0 = strlen(str) + 1;
|
||||
#endif
|
||||
|
||||
ob = cw->data[cw->cury] = (nhwchar *)alloc(sizeof(nhwchar) * (unsigned)n0 + 1);
|
||||
ob = cw->data[cw->cury] = (nhwchar *)alloc(sizeof(nhwchar) * ((unsigned)n0 + 1));
|
||||
*ob++ = (nhwchar)(attr + 1); /* avoid nuls, for convenience */
|
||||
#ifdef UNICODE_WIDEWINPORT
|
||||
(void)nhwcpy(ob, symstr);
|
||||
|
||||
Reference in New Issue
Block a user