[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] nano-1.3.6 build failure with --enable-debug
From: |
Mike Frysinger |
Subject: |
[Nano-devel] nano-1.3.6 build failure with --enable-debug |
Date: |
Tue, 22 Mar 2005 23:20:58 -0500 |
User-agent: |
KMail/1.8 |
you only notice this if you build with debug, but src/chars.c has a typo ...
in the move_mbleft() function, the assert refers to 'str' instead of 'buf',
triggering a simple build failure:
chars.c: In function `move_mbleft':
chars.c:458: error: `str' undeclared (first use in this function)
simple fix:
--- src/chars.c
+++ src/chars.c
@@ -455,8 +455,8 @@
size_t move_mbleft(const char *buf, size_t 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
* character. Here is the naive, O(pos) way to do it. */
reported here:
http://bugs.gentoo.org/show_bug.cgi?id=86339
-mike
- [Nano-devel] nano-1.3.6 build failure with --enable-debug,
Mike Frysinger <=