]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__open_catalog): Fix typo in code which uses read to load the catalog.
authorUlrich Drepper <drepper@redhat.com>
Wed, 27 Feb 2002 18:06:50 +0000 (18:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 27 Feb 2002 18:06:50 +0000 (18:06 +0000)
catgets/open_catalog.c

index c38719edb9fabe51f0b830825521e01311b4ad8f..66f1bf28507b3896d2e57aeef32119e7b5f06b16 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper, <drepper@gnu.org>.
 
@@ -237,7 +237,7 @@ __open_catalog (const char *cat_name, const char *nlspath, const char *env_var,
       /* Save read, handle partial reads.  */
       do
        {
-         size_t now = __read (fd, (((char *) &catalog->file_ptr)
+         size_t now = __read (fd, (((char *) catalog->file_ptr)
                                    + (st.st_size - todo)), todo);
          if (now == 0 || now == (size_t) -1)
            {