-
- Downloads
Avoid zero-length ldisc_send() in terminal.c.
A user reports that a remote window title query, if the window title is empty or if the option to return it is disabled, fails the assertion in ldisc_send that I introduced as part of commit c269dd01 to catch any lingering uses of ldisc_send with length 0 that should have turned into ldisc_echoedit_update. Added a check for len > 0 guarding that ldisc_send call, and likewise at one or two others I noticed on my way here. (Probably at some point I should decide that the period of smoking out lingering old-style ldisc_send(0) calls is over, and declare it safe to remove that assertion again and get rid of all the cumbersome safety checks at call sites like these ones. But not quite yet.)
Loading
Please register or sign in to comment