Commit 8eb9c029 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix the previous fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2261 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 1 addition and 4 deletions
+1 -4
......@@ -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);
......
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