commit | 3c4dc46fdccd4102536ca61d62f3ffe32f818823 | [log] [tgz] |
---|---|---|
author | David Lawrence Ramsey <pooka109@gmail.com> | Wed Sep 14 19:17:56 2005 +0000 |
committer | David Lawrence Ramsey <pooka109@gmail.com> | Wed Sep 14 19:17:56 2005 +0000 |
tree | b889839139eade5cf89208352a51c5a9cd6e852e | |
parent | 1c3bfa9f2b23e8176be8895b9dc9b9c574a706d6 [diff] |
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