Better clear sourceLine[SCROLL_LEFT - 1] and sourceLine[SCROLL_RIGHT + 1] as well, since it will be broken after the memcpy below.