diff options
author | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
commit | 35d2f5bccb0f3dde600702ebcdb5424d4d50be4a (patch) | |
tree | 6e0ff0341c69839e268459a199682628bae734ed /libbb/lineedit.c | |
parent | 248a2600a2f4b442101ad568d1994b908bb28d4b (diff) | |
parent | f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (diff) | |
download | busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.gz busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.bz2 busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index e7b9ddfa1..6c91f1794 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -829,12 +829,11 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type) | |||
829 | if (type == FIND_EXE_ONLY) { | 829 | if (type == FIND_EXE_ONLY) { |
830 | const char *p = applet_names; | 830 | const char *p = applet_names; |
831 | 831 | ||
832 | i = 0; | 832 | while (*p) { |
833 | while (i < NUM_APPLETS) { | ||
834 | if (strncmp(pfind, p, pf_len) == 0) | 833 | if (strncmp(pfind, p, pf_len) == 0) |
835 | add_match(xstrdup(p)); | 834 | add_match(xstrdup(p)); |
836 | p += strlen(p) + 1; | 835 | while (*p++ != '\0') |
837 | i++; | 836 | continue; |
838 | } | 837 | } |
839 | } | 838 | } |
840 | #endif | 839 | #endif |