diff options
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index b7ff09b51a..1b756fcf1c 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -352,7 +352,7 @@ int php_init_config(TSRMLS_D) } #else if (sapi_module.executable_location) { - binary_location = (char *)emalloc(PATH_MAX); + binary_location = (char *)emalloc(MAXPATHLEN); if (!strchr(sapi_module.executable_location, '/')) { char *envpath, *path; int found = 0; |