Skip to content
Snippets Groups Projects
Commit bf81946e authored by Mark Spencer's avatar Mark Spencer
Browse files

Contributed off-by-one fix for editline

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 07baf77b
Branches
Tags
No related merge requests found
......@@ -139,7 +139,7 @@ hist_get(EditLine *el)
if (el->el_line.lastchar > el->el_line.buffer) {
if (el->el_line.lastchar[-1] == '\n')
el->el_line.lastchar--;
if (el->el_line.lastchar[-1] == ' ')
if ((el->el_line.lastchar > el->el_line.buffer)&&(el->el_line.lastchar[-1] == ' ')) /* bill heckel */
el->el_line.lastchar--;
if (el->el_line.lastchar < el->el_line.buffer)
el->el_line.lastchar = el->el_line.buffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment