From b479432a465fabfc80e6edfbd5a79b70987c283c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 11 Jan 2001 13:28:23 +0000 Subject: Consistently include the terminating NUL in the size of strings. --- lib/hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/hash.c') 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 , 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; } -- cgit v1.1