terminating NULL.
static PHP_MINFO_FUNCTION(dba)
{
dba_handler *hptr;
+<<<<<<< dba.c
+ static char handlers[80];
+=======
smart_str handlers = {0};
+>>>>>>> 1.28
+
+ handlers[0] = '\0';
for(hptr = handler; hptr->name; hptr++) {
+<<<<<<< dba.c
+ strlcat(handlers, hptr->name, sizeof(handlers));
+=======
smart_str_appends(&handlers, hptr->name);
smart_str_appendc(&handlers, ' ');
+>>>>>>> 1.28
}
php_info_print_table_start();
}
#if HAVE_GETCWD
- ret = V_GETCWD(path,MAXPATHLEN-1);
+ ret = V_GETCWD(path, MAXPATHLEN);
#elif HAVE_GETWD
ret = V_GETWD(path);
/*
PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char **opened_path)
{
char *pathbuf, *ptr, *end;
- char trypath[MAXPATHLEN + 1];
+ char trypath[MAXPATHLEN];
struct stat sb;
FILE *fp;
int filename_length;
PHPAPI char *expand_filepath(const char *filepath, char *real_path)
{
cwd_state new_state;
- char cwd[MAXPATHLEN+1];
+ char cwd[MAXPATHLEN];
char *result;
result = V_GETCWD(cwd, MAXPATHLEN);
}
duid = sb.st_uid;
} else {
- char cwd[MAXPATHLEN+1];
+ char cwd[MAXPATHLEN];
if (!V_GETCWD(cwd, MAXPATHLEN)) {
php_error(E_WARNING, "Unable to access current working directory");
return 0;
SG(request_info).query_string = PHG(cip)->hip->request;
SG(request_info).request_method = PHG(cip)->hip->method;
- SG(request_info).path_translated = malloc(MAXPATHLEN+1);
+ SG(request_info).path_translated = malloc(MAXPATHLEN);
SG(sapi_headers).http_response_code = 200;
if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, NULL) == NULL) {
/* handle error */
zend_file_handle file_handle;
#ifndef VIRTUAL_DIR
- char cwd[MAXPATHLEN+1];
+ char cwd[MAXPATHLEN];
#endif
SLS_FETCH();
PLS_FETCH();