pixel / hexedit

View and edit files in hexadecimal or in ASCII
http://rigaux.org/hexedit.html
GNU General Public License v2.0
98 stars 41 forks source link

Move SIGWINCH handling from handler to NCURSES #56

Closed rsaxvc closed 2 years ago

rsaxvc commented 2 years ago

Use NCURSES internal SIGWINCH handling to generate KEY_RESIZE. Use KEY_RESIZE to trigger window resize instead of SIGWINCH.

This fixes a crash on some platforms during resize introduced in b622084ac - it's not safe to allocate or reallocate memory during a signal handler.

fixes #51