diff options
Diffstat (limited to 'ext/standard/filestat.c')
-rw-r--r-- | ext/standard/filestat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 6f83dc09a3..184bf7c974 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -644,7 +644,7 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ groups = getgroups(0, NULL); if(groups) { - gids=(gid_t *)emalloc(groups*sizeof(gid_t)); + gids=(gid_t *)safe_emalloc(groups, sizeof(gid_t), 0); n=getgroups(groups, gids); for(i=0;i<n;i++){ if(BG(sb).st_gid==gids[i]) { |