summaryrefslogtreecommitdiff
path: root/glnx-fdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'glnx-fdio.c')
-rw-r--r--glnx-fdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-fdio.c b/glnx-fdio.c
index c601f08..ee69aa1 100644
--- a/glnx-fdio.c
+++ b/glnx-fdio.c
@@ -1130,7 +1130,7 @@ glnx_file_replace_contents_with_perms_at (int dfd,
&tmpf, error))
return FALSE;
- if (len == -1)
+ if (len == (gsize) -1)
len = strlen ((char*)buf);
if (!glnx_try_fallocate (tmpf.fd, 0, len, error))