]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - pcomplib.c
fix for SIGINT in sourced script
[thirdparty/bash.git] / pcomplib.c
index fe337e4aee3564a3ca31b937a291d5110bb99d52..70c7a17a602194c792fe91a9cf23fb456ff78d98 100644 (file)
@@ -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;