fix the previous fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2261 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-01-14 04:45:18 +00:00
parent 8f2906ba61
commit 8eb9c029be
1 changed files with 1 additions and 4 deletions

View File

@ -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);