Hello 

FYI, here is a patch that was submitted through the Debian Bug Tracking
System for bug #145322. 
(for those who don't like to upgrade etc.. it is fixed in the 3.23.50)

bye,

-christian-

On Mon, May 20, 2002 at 06:55:19PM +0200, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I had a similar problem using the mysql_real_connect function. 
> 
> Investigation of the problem results in wrong usage of the function
> "strcend (const char* s, pchar c)" in mysql_read_default_options. The
> documentation of this function tells, that "a pointer to the end-null
> of s" is returned if the character c is not found in s.
> 
> There is a "for" loop in mysql_read_default_options that loops until
> this function returns a NULL pointer, what never will happen.
> 
> ... around line 715 in libmysql/libmysql.c ...
> for (end= *option ; (end= strcend(end,'_')); )
>       *end= '-';
> ...
> 
> the bugfix is straight forward to check for the char and not for the
> pointer:
> 
> 715c715
> <     for (end= *option ; (end= strcend(end,'_')); )
> ---
> >     for (end= *option ; *(end= strcend(end,'_')); )
> 
> 
> BTW.: the same bugfix (or correct version :-) is already in the
> reentrant version of the library in libmysql_r/libmysql.c
> 
> Dirk


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to