Index: editline/hist.c =================================================================== RCS file: /usr/cvsroot/asterisk/editline/hist.c,v retrieving revision 1.2 diff -u -p -r1.2 hist.c --- editline/hist.c 26 Mar 2003 22:37:33 -0000 1.2 +++ editline/hist.c 14 Jul 2004 07:52:39 -0000 @@ -106,7 +106,7 @@ hist_get(EditLine *el) if (el->el_history.eventno == 0) { /* if really the current line */ (void) strncpy(el->el_line.buffer, el->el_history.buf, - el->el_history.sz); + el->el_history.sz - 1); el->el_line.lastchar = el->el_line.buffer + (el->el_history.last - el->el_history.buf);