aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/iobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/iobuf.c b/common/iobuf.c
index 3ec64dc57..86bb29641 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -2564,7 +2564,7 @@ iobuf_get_filelength (iobuf_t a, int *overflow)
{
struct stat st;
- if ( !fstat (FD2INT (fp), &st) )
+ if ( !fstat (fp, &st) )
return st.st_size;
log_error("fstat() failed: %s\n", strerror(errno) );
}