Commit 7098ec23 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
parent 62898233
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment