summaryrefslogtreecommitdiff
path: root/sysdeps/posix/posix_fallocate64.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/posix_fallocate64.c')
-rw-r--r--sysdeps/posix/posix_fallocate64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/posix_fallocate64.c b/sysdeps/posix/posix_fallocate64.c
index ee32679a05..0c094ff9b8 100644
--- a/sysdeps/posix/posix_fallocate64.c
+++ b/sysdeps/posix/posix_fallocate64.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -37,7 +37,7 @@ __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len)
/* Perform overflow check. The outer cast relies on a GCC
extension. */
- if ((__off64_t) ((uint64_t) offset) + ((uint64_t) len) < 0)
+ if ((__off64_t) ((uint64_t) offset + (uint64_t) len) < 0)
return EFBIG;
/* pwrite64 below will not do the right thing in O_APPEND mode. */