aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-05-16 09:33:03 +0100
committerRon Yorston <rmy@pobox.com>2016-05-16 09:33:03 +0100
commit35d2f5bccb0f3dde600702ebcdb5424d4d50be4a (patch)
tree6e0ff0341c69839e268459a199682628bae734ed /libbb/lineedit.c
parent248a2600a2f4b442101ad568d1994b908bb28d4b (diff)
parentf2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (diff)
downloadbusybox-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.c7
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