]> granicus.if.org Git - php/commitdiff
use correct constant
authorAntony Dovgal <tony2001@php.net>
Sat, 19 May 2007 12:52:31 +0000 (12:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 19 May 2007 12:52:31 +0000 (12:52 +0000)
main/php_ini.c

index 06be3eb90e4f78c9fb9fdcd92dc76fed79dfb6bb..a97e8e8bff7c4dc1c2021500cd8e7afcf66ee4dc 100644 (file)
@@ -350,7 +350,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;