diff options
author | Anatol Belski <ab@php.net> | 2014-10-27 18:42:45 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-28 17:24:50 +0100 |
commit | 99d12cf2026b7363f874bcbf7b19b5c204210553 (patch) | |
tree | ef1f2616b4737a64d9fc33bba8baacd40352659f | |
parent | 5190d8fb56bb5086d634a8a4618ae054a767e31d (diff) | |
download | php-git-99d12cf2026b7363f874bcbf7b19b5c204210553.tar.gz |
fix datatype mismatch
-rw-r--r-- | main/php_scandir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_scandir.c b/main/php_scandir.c index 7dfec7bff7..5275f3ddd3 100644 --- a/main/php_scandir.c +++ b/main/php_scandir.c @@ -97,7 +97,7 @@ PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*se vector = newv; } - dsize = sizeof (struct dirent) + ((strlen(dp->d_name) + 1) * sizeof(char)); + dsize = sizeof (struct dirent) + (((int)strlen(dp->d_name) + 1) * sizeof(char)); newdp = (struct dirent *) malloc(dsize); if (newdp == NULL) { |