in (control_)?mbrep(), if crep is an invalid multibyte sequence, copy
Unicode 0xFFFD (Replacement Character) into it using strncpy() instead of assigning the former to it; this avoids segfaults when freeing crep later, since it's supposed to be dynamically allocated git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3018 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Showing
+15 -4
Please register or sign in to comment