1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

emacs: more correct fix (re: 9ccb9572)

sptr is set to drawbuff, but may change; drawbuff itself will not
change and reading before the start of that was the actual cause of
the crash.
This commit is contained in:
Martijn Dekker 2021-02-20 22:12:23 +00:00
parent 9ccb9572f3
commit f57f7b7a19

View file

@ -1445,7 +1445,7 @@ static void draw(register Emacs_t *ep,Draw_t option)
*****************************************/
if(logcursor > sptr)
if(logcursor > drawbuff)
i = *(logcursor-1); /* last character inserted */
else
i = 0;