diff options
author | Andi Gutmans <andi@php.net> | 2000-12-16 20:52:43 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-12-16 20:52:43 +0000 |
commit | 86a1cace276f827bd8261e624c4839b58ffc5f15 (patch) | |
tree | 60527ca4b4148f6aa014a444aed491c53a4742ac /ext/dba | |
parent | 93a93c242973f8152b24a2b2beab236220404bfa (diff) | |
download | php-git-86a1cace276f827bd8261e624c4839b58ffc5f15.tar.gz |
- Make all places use MAXPATHLEN in the same way. It includes the
terminating NULL.
Diffstat (limited to 'ext/dba')
-rw-r--r-- | ext/dba/dba.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index c432b70018..053861aadc 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -211,11 +211,21 @@ static PHP_MSHUTDOWN_FUNCTION(dba) 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(); |