- while (temp1 < end)
- *temp1++ = *temp2++;
- *temp1 = ' ';
- touchline(win, win->cury, win->curx, win->maxx - 1);
+ while (temp1 < end) {
+ (void)memcpy(temp1, temp2, sizeof(__LDATA));
+ temp1++, temp2++;
+ }
+ temp1->ch = ' ';
+ temp1->attr = 0;
+ __touchline(win, win->cury, win->curx, win->maxx - 1, 0);