diff options
author | Mark Spencer <markster@digium.com> | 2004-07-14 13:57:15 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-07-14 13:57:15 +0000 |
commit | 044ad2e2e7a74049ed5c2215d00624be9f045e60 (patch) | |
tree | 30a1118273807f5c6ba0e3ca611ab0c6a160fa3b /editline/hist.c | |
parent | 9cd917c42a6cf0661861a7e19d4685b2449df43f (diff) |
Merge remaining audit patch (save dlfcn.c)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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); |