diff options
author | Bruno Haible <bruno@clisp.org> | 2001-01-11 13:28:23 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-01-11 13:28:23 +0000 |
commit | b479432a465fabfc80e6edfbd5a79b70987c283c (patch) | |
tree | b9e46ba74502e94bdcb58715bbfe9123520453e1 /lib | |
parent | 42f53ec75e7de42861d0e886f347b441ed56f642 (diff) | |
download | external_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/ChangeLog | 4 | ||||
-rw-r--r-- | lib/hash.c | 4 |
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. @@ -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; } |