com php-src: fix datatype mismatch: main/php_scandir.c

From: Date: Tue, 28 Oct 2014 16:24:50 +0000
Subject: com php-src: fix datatype mismatch: main/php_scandir.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82756@lists.php.net to get a copy of this message
Commit: 99d12cf2026b7363f874bcbf7b19b5c204210553 Author: Anatol Belski <ab@php.net> Mon, 27 Oct 2014 18:42:45 +0100 Parents: 5190d8fb56bb5086d634a8a4618ae054a767e31d Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=99d12cf2026b7363f874bcbf7b19b5c204210553 Log: fix datatype mismatch Changed paths: M main/php_scandir.c Diff: diff --git a/main/php_scandir.c b/main/php_scandir.c index 7dfec7b..5275f3d 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) {

« previous php.cvs (#82756) next »