aboutsummaryrefslogtreecommitdiff
path: root/gcc/hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/hashtable.c')
-rw-r--r--gcc/hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/hashtable.c b/gcc/hashtable.c
index 7d0359a..bd2b137 100644
--- a/gcc/hashtable.c
+++ b/gcc/hashtable.c
@@ -162,7 +162,7 @@ ht_lookup (table, str, len, insert)
HT_LEN (node) = len;
if (insert == HT_ALLOC)
- HT_STR (node) = obstack_copy (&table->stack, str, len + 1);
+ HT_STR (node) = obstack_copy0 (&table->stack, str, len);
else
HT_STR (node) = str;