diff options
Diffstat (limited to 'gcc/intl/loadmsgcat.c')
-rw-r--r-- | gcc/intl/loadmsgcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/intl/loadmsgcat.c b/gcc/intl/loadmsgcat.c index 4dfb687..f05946e 100644 --- a/gcc/intl/loadmsgcat.c +++ b/gcc/intl/loadmsgcat.c @@ -91,7 +91,7 @@ _nl_load_domain (domain_file) /* We must know about the size of the file. */ if (fstat (fd, &st) != 0 - || (size = (size_t) st.st_size) != st.st_size + || (size = (size_t) st.st_size) != (size_t) st.st_size || size < sizeof (struct mo_file_header)) { /* Something went wrong. */ |