X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fbash.git;a=blobdiff_plain;f=pcomplib.c;h=70c7a17a602194c792fe91a9cf23fb456ff78d98;hp=fe337e4aee3564a3ca31b937a291d5110bb99d52;hb=64447609994bfddeef1061948022c074093e9a9f;hpb=495aee441b75276e38c75694ccb455bb6463fdb9 diff --git a/pcomplib.c b/pcomplib.c index fe337e4ae..70c7a17a6 100644 --- a/pcomplib.c +++ b/pcomplib.c @@ -37,7 +37,7 @@ #include "shell.h" #include "pcomplete.h" -#define COMPLETE_HASH_BUCKETS 32 /* must be power of two */ +#define COMPLETE_HASH_BUCKETS 256 /* must be power of two */ #define STRDUP(x) ((x) ? savestring (x) : (char *)NULL) @@ -96,7 +96,7 @@ compspec_copy (cs) new = (COMPSPEC *)xmalloc (sizeof (COMPSPEC)); - new->refcount = cs->refcount; + new->refcount = 1; /* was cs->refcount, but this is a fresh copy */ new->actions = cs->actions; new->options = cs->options;