diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-14 13:57:15 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-14 13:57:15 +0000 |
commit | 5d8654361451b217b1fc604f449554e74a11b70b (patch) | |
tree | 30a1118273807f5c6ba0e3ca611ab0c6a160fa3b /editline/common.c | |
parent | 3aea726c3943cf31d2d90c194d1e126891b1481d (diff) |
Merge remaining audit patch (save dlfcn.c)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3436 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'editline/common.c')
-rwxr-xr-x | editline/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editline/common.c b/editline/common.c index a6821e93f..c831e79a3 100755 --- a/editline/common.c +++ b/editline/common.c @@ -676,7 +676,7 @@ ed_prev_history(EditLine *el, int c) if (el->el_history.eventno == 0) { /* save the current buffer * away */ (void) strncpy(el->el_history.buf, el->el_line.buffer, - EL_BUFSIZ); + EL_BUFSIZ - 1); el->el_history.last = el->el_history.buf + (el->el_line.lastchar - el->el_line.buffer); } @@ -742,7 +742,7 @@ ed_search_prev_history(EditLine *el, int c) } if (el->el_history.eventno == 0) { (void) strncpy(el->el_history.buf, el->el_line.buffer, - EL_BUFSIZ); + EL_BUFSIZ - 1); el->el_history.last = el->el_history.buf + (el->el_line.lastchar - el->el_line.buffer); } |