summaryrefslogtreecommitdiffstats
path: root/lib/hash.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-01-11 13:28:23 +0000
committerBruno Haible <bruno@clisp.org>2001-01-11 13:28:23 +0000
commitb479432a465fabfc80e6edfbd5a79b70987c283c (patch)
treeb9e46ba74502e94bdcb58715bbfe9123520453e1 /lib/hash.c
parent42f53ec75e7de42861d0e886f347b441ed56f642 (diff)
downloadexternal_gettext-b479432a465fabfc80e6edfbd5a79b70987c283c.zip
external_gettext-b479432a465fabfc80e6edfbd5a79b70987c283c.tar.gz
external_gettext-b479432a465fabfc80e6edfbd5a79b70987c283c.tar.bz2
Consistently include the terminating NUL in the size of strings.
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hash.c b/lib/hash.c
index d848d6e..705848b 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -1,5 +1,5 @@
/* hash - implement simple hashing table with string based keys.
- Copyright (C) 1994, 1995, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, October 1994.
This program is free software; you can redistribute it and/or modify
@@ -141,7 +141,7 @@ insert_entry (htab, key, keylen, data)
else
{
/* An empty bucket has been found. */
- insert_entry_2 (htab, obstack_copy0 (&htab->mem_pool, key, keylen),
+ insert_entry_2 (htab, obstack_copy (&htab->mem_pool, key, keylen),
keylen, hval, idx, data);
return 0;
}