diff options
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r-- | source3/web/cgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 651cd3d8c3..88f4d3f36f 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -149,9 +149,9 @@ void cgi_load_variables(FILE *f1) len = content_length; } } else { - fseek(f, 0, SEEK_END); - len = ftell(f); - fseek(f, 0, SEEK_SET); + struct stat st; + fstat(fileno(f), &st); + len = st.st_size; } |