From: Sascha Schumann Date: Sat, 13 Oct 2001 23:43:49 +0000 (+0000) Subject: Either sizeof(struct stat) or sizeof f_stat, but not sizeof stat. X-Git-Tag: POST_PARAMETER_PARSING_API~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a92fa9b2bc5fd0e9387b59477a58e8e0178ccb10;p=php Either sizeof(struct stat) or sizeof f_stat, but not sizeof stat. --- diff --git a/ext/standard/file.c b/ext/standard/file.c index fadfa664f2..df03be59e9 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1646,7 +1646,7 @@ PHP_FUNCTION(mmapfile) char *in_addr; struct stat f_stat; - memset (&f_stat, 0, sizeof (stat)); + memset (&f_stat, 0, sizeof (f_stat)); /* check args */ switch (ARG_COUNT(ht)) {