diff options
Diffstat (limited to 'editline/hist.c')
-rwxr-xr-x | editline/hist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editline/hist.c b/editline/hist.c index b9eb92480..11f39ae10 100755 --- a/editline/hist.c +++ b/editline/hist.c @@ -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); |