]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(get_symname): Start looking for numeric value at the right position.
authorUlrich Drepper <drepper@redhat.com>
Sun, 13 Feb 2000 07:23:21 +0000 (07:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 13 Feb 2000 07:23:21 +0000 (07:23 +0000)
locale/programs/linereader.c

index 31278d63c27b66a2e4977e1e77de683b9d3cce26..f036480d1e302b31a76e0f514e5a3fe2da7c056b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
 
@@ -400,7 +400,7 @@ get_symname (struct linereader *lr)
        {
          /* Yes, it is.  */
          lr->token.tok = bufact == 6 ? tok_ucs2 : tok_ucs4;
-         lr->token.val.charcode.val = strtoul (buf, NULL, 16);
+         lr->token.val.charcode.val = strtoul (buf + 1, NULL, 16);
          lr->token.val.charcode.nbytes = lr->token.tok == tok_ucs2 ? 2 : 4;
 
          return &lr->token;