Re: cvs: php4 /ext/dba dba.c
| From: | Sascha Schumann | Date: | Fri, 01 Dec 2000 12:25:43 +0000 |
| Subject: | Re: cvs: php4 /ext/dba dba.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-2840@lists.php.net to get a copy of this message | ||
On Fri, 1 Dec 2000, Andi Gutmans wrote:
> Try the following and commit if it's OK.
> static PHP_MINFO_FUNCTION(dba)
> {
> dba_handler *hptr;
> static char handlers[80];
>
> handlers[0] = '\0';
>
> for(hptr = handler; hptr->name; hptr++) {
> strlcat(handlers, hptr->name, sizeof(handlers));
Hm, strlcat/strlcpy were invented by OpenBSD to fix broken
code quickly (instead of rewriting it). I'll fix this code
later.
- Sascha