fix the previous fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2261 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
8f2906ba61
commit
8eb9c029be
|
@ -159,13 +159,10 @@ size_t mbstrnlen(const char *s, size_t maxlen)
|
|||
, NULL);
|
||||
|
||||
if (s_mb_len > maxlen)
|
||||
s_mb_len = maxlen;
|
||||
break;
|
||||
|
||||
maxlen -= s_mb_len;
|
||||
n += s_mb_len;
|
||||
|
||||
if (maxlen == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
free(s_mb);
|
||||
|
|
Loading…
Reference in New Issue