use the right number of characters when calling the multibyte equivalent

of strnlen()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2263 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-01-14 15:27:33 +00:00
parent 9b95ca8c29
commit 1bdccc5281
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void not_found_msg(const char *str)
assert(str != NULL);
disp = display_string(str, 0, (COLS / 2) + 1, FALSE);
numchars = mbstrnlen(disp, COLS / 2);
numchars = mbstrnlen(disp, actual_x(disp, COLS / 2));
statusbar(_("\"%.*s%s\" not found"), numchars, disp,
(disp[numchars] == '\0') ? "" : "...");