From: David Lawrence Ramsey Date: Mon, 3 Jan 2005 21:34:55 +0000 (+0000) Subject: fix assert X-Git-Tag: v1.3.6~179 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2524a70a49e1bdc00305d49550448ee1dcb39a66;p=nano.git fix assert git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2223 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/winio.c b/src/winio.c index a4df2577..54aeaf27 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2506,7 +2506,7 @@ void nanoget_repaint(const char *buf, const char *inputbuf, size_t x) FALSE); assert(wid > 0); - assert(strlen(expanded) <= wid); + assert(strlenpt(expanded) <= wid); waddstr(bottomwin, expanded); free(expanded);