From b16dba4c527606483050b5ffdaf6e4b2fe97e2f8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 5 May 2007 04:15:31 +0000 Subject: * locale/programs/linereader.c (get_symname): Fix adding final NUL. (get_ident): Likewise. --- locale/programs/linereader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'locale/programs') diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c index 6587f7305b..4b38fd283c 100644 --- a/locale/programs/linereader.c +++ b/locale/programs/linereader.c @@ -523,8 +523,8 @@ get_symname (struct linereader *lr) { lr->token.tok = tok_bsymbol; - buf[bufact] = '\0'; buf = xrealloc (buf, bufact + 1); + buf[bufact] = '\0'; lr->token.val.str.startmb = buf; lr->token.val.str.lenmb = bufact - 1; @@ -576,8 +576,8 @@ get_ident (struct linereader *lr) { lr->token.tok = tok_ident; - buf[bufact] = '\0'; buf = xrealloc (buf, bufact + 1); + buf[bufact] = '\0'; lr->token.val.str.startmb = buf; lr->token.val.str.lenmb = bufact; -- cgit 1.4.1