summaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/hash.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 8823b2f..13af124 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2000-12-31 Bruno Haible <haible@clisp.cons.org>
+
+ * hash.c (insert_entry): Use obstack_copy instead of obstack_copy0.
+
2000-12-30 Bruno Haible <haible@clisp.cons.org>
* system.h (open_po_file): Remove declaration.
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;
}