diff options
author | Jari Aalto <jari.aalto@cante.net> | 1998-07-23 14:37:54 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:52 +0000 |
commit | bc4cd23ce958feda898c618215f94d8a4e8f4ffa (patch) | |
tree | 32fc9a13b636cb4d29873feddc533d3dfb25a917 /bashline.c | |
parent | cce855bc5b117cb7ae70064131120687bc69fac0 (diff) | |
download | android_external_bash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.tar.gz android_external_bash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.tar.bz2 android_external_bash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.zip |
Imported from ../bash-2.02.1.tar.gz.
Diffstat (limited to 'bashline.c')
-rw-r--r-- | bashline.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -213,7 +213,9 @@ initialize_readline () #ifdef ALIAS rl_add_defun ("alias-expand-line", (Function *)alias_expand_line, -1); +# ifdef BANG_HISTORY rl_add_defun ("history-and-alias-expand-line", (Function *)history_and_alias_expand_line, -1); +# endif #endif /* Backwards compatibility. */ @@ -538,7 +540,7 @@ hostnames_matching (text) continue; /* OK, it matches. Add it to the list. */ - if (nmatch >= rsize) + if (nmatch >= (rsize - 1)) { rsize = (rsize + 16) - (rsize % 16); result = (char **)xrealloc (result, rsize * sizeof (char *)); |