per Mike Frysinger's patch, in move_mbleft(), fix assert to reference

the proper variable, so that nano builds with DEBUG defined again


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2422 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-03-23 05:56:11 +00:00
parent bc6a36e40d
commit 263b447323
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,11 @@ CVS code -
- After (re)initializing the terminal, make sure the cursor is - After (re)initializing the terminal, make sure the cursor is
always turned on. Changes to do_alt_speller(), always turned on. Changes to do_alt_speller(),
handle_sigwinch(), and main(). (DLR) handle_sigwinch(), and main(). (DLR)
- chars.c:
move_mbleft()
- Fix assert to reference the proper variable, so that nano
builds with DEBUG defined again. (Mike Frysinger, found by
Dmitri Vassilenko)
- files.c: - files.c:
do_browser() do_browser()
- Rename variable lineno to fileline to avoid confusion. (DLR) - Rename variable lineno to fileline to avoid confusion. (DLR)

View File

@ -455,7 +455,7 @@ size_t move_mbleft(const char *buf, size_t pos)
{ {
size_t pos_prev = pos; size_t pos_prev = pos;
assert(str != NULL && pos <= strlen(buf)); assert(buf != NULL && pos <= strlen(buf));
/* There is no library function to move backward one multibyte /* There is no library function to move backward one multibyte
* character. Here is the naive, O(pos) way to do it. */ * character. Here is the naive, O(pos) way to do it. */