From: Ulrich Drepper Date: Wed, 27 Feb 2002 18:06:50 +0000 (+0000) Subject: (__open_catalog): Fix typo in code which uses read to load the catalog. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=840c900440194bf7e87a6cd9119edb0f15352cb8;p=thirdparty%2Fglibc.git (__open_catalog): Fix typo in code which uses read to load the catalog. --- diff --git a/catgets/open_catalog.c b/catgets/open_catalog.c index c38719edb9f..66f1bf28507 100644 --- a/catgets/open_catalog.c +++ b/catgets/open_catalog.c @@ -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, . @@ -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) {