]> git.wh0rd.org Git - nano.git/commit
in (control_)?mbrep(), if crep is an invalid multibyte sequence, copy
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 14 Sep 2005 19:17:56 +0000 (19:17 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 14 Sep 2005 19:17:56 +0000 (19:17 +0000)
commit3c4dc46fdccd4102536ca61d62f3ffe32f818823
treeb889839139eade5cf89208352a51c5a9cd6e852e
parent1c3bfa9f2b23e8176be8895b9dc9b9c574a706d6
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
ChangeLog
src/chars.c