From f02553fdfdc99b34012478cdea5b57a280c0d3e7 Mon Sep 17 00:00:00 2001 From: mdw Date: Tue, 18 Oct 2005 08:42:51 +0000 Subject: [PATCH] Don't include trailing zero in the name of a gensym. --- atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom.c b/atom.c index 0d74478..ce8295c 100644 --- a/atom.c +++ b/atom.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: atom.c,v 1.5 2004/04/08 01:36:11 mdw Exp $ + * $Id$ * * Atom management * @@ -153,7 +153,7 @@ atom *atom_gensym(atom_table *t) a = x_alloc(t->t.t.a, sizeof(atom) + sz); a->b.name = (char *)(a + 1); memcpy(a->b.name, buf, sz); - a->b.len = sz; + a->b.len = sz - 1; a->b.b.hash = UNIHASH(&unihash_global, buf, sz); a->f = ATOMF_GENSYM; a->b.b.next = t->g; -- 2.11.0