diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-08 07:40:31 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-08 07:40:31 -0700 |
commit | 9ab8c44a5c30c47a5b2ce66f27b46d384d446df2 (patch) | |
tree | 55a62738f6c5591a5f815f5eb10d4ff53334a8fb /linenoise/linenoise.h | |
parent | 4ced8d1bf77a6d42d76843e345bef6d9f765d021 (diff) | |
download | txr-9ab8c44a5c30c47a5b2ce66f27b46d384d446df2.tar.gz txr-9ab8c44a5c30c47a5b2ce66f27b46d384d446df2.tar.bz2 txr-9ab8c44a5c30c47a5b2ce66f27b46d384d446df2.zip |
Bugfix: underrun on empty line tab completion.
* parser.c (provide_completions): If strlen(data) is zero,
the calculation of ptr places it at data - 1. Instead,
let us calculate a zero value for ptr and then bail based
on this.
Diffstat (limited to 'linenoise/linenoise.h')
0 files changed, 0 insertions, 0 deletions