summaryrefslogtreecommitdiff
path: root/intl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-11-19 22:54:13 +0000
committerUlrich Drepper <drepper@redhat.com>1997-11-19 22:54:13 +0000
commit3c3d34f3da67e964ee89318f07583b99d6686eb1 (patch)
treea401ef266bd7876e644c5b6dea718e31b75cf250 /intl
parent25e31e72248ad050c8c4c51976cdf2f03642a888 (diff)
Correct logic in test for file size.
Diffstat (limited to 'intl')
-rw-r--r--intl/loadmsgcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c
index bcfaacb8bf..00450cfa06 100644
--- a/intl/loadmsgcat.c
+++ b/intl/loadmsgcat.c
@@ -1,5 +1,5 @@
/* loadmsgcat.c -- load needed message catalogs
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
@@ -94,7 +94,7 @@ _nl_load_domain (domain_file)
/* We must know about the size of the file. */
if (fstat (fd, &st) != 0
- && st.st_size < (off_t) sizeof (struct mo_file_header))
+ || st.st_size < (off_t) sizeof (struct mo_file_header))
{
/* Something went wrong. */
close (fd);