nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 7098ec233cc50ff38c993e4728b12c8a615e18eb
parent 62898233acca99e19b919b90718d1ff6757c67e5
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat, 18 Jun 2005 05:15:08 +0000

n is ignored in the mbstowcs() call, so it can be 0 instead of
(size_t)-1


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2721 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/chars.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chars.c b/src/chars.c @@ -858,7 +858,7 @@ bool is_valid_mbstring(const char *s) return #ifdef NANO_WIDE ISSET(USE_UTF8) ? - (mbstowcs(NULL, s, (size_t)-1) != (size_t)-1) : + (mbstowcs(NULL, s, 0) != (size_t)-1) : #endif TRUE;