[asterisk-dev] Re: [svn-commits] murf: trunk r46801 - /trunk/res/res_config_odbc.c

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Nov 1 17:48:25 MST 2006


On Wed, Nov 01, 2006 at 07:48:40PM -0000, svn-commits at lists.digium.com wrote:
> Author: murf
> Date: Wed Nov  1 13:48:40 2006
> New Revision: 46801
> 
> URL: http://svn.digium.com/view/asterisk?rev=46801&view=rev
> Log:
> a fix for bug 8251; the var_val needs to accept longer strings or mass confusion and a lot of lost time is the result
> 
> Modified:
>     trunk/res/res_config_odbc.c
> 
> Modified: trunk/res/res_config_odbc.c
> URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_odbc.c?rev=46801&r1=46800&r2=46801&view=diff
> ==============================================================================
> --- trunk/res/res_config_odbc.c (original)
> +++ trunk/res/res_config_odbc.c Wed Nov  1 13:48:40 2006
> @@ -448,7 +448,7 @@
>  	char filename[128];

So I feel like it's time for a stupid question: why is the length of a 
filename limited to 128 bytes? Andwhere else?

>  	char category[128];
>  	char var_name[128];
> -	char var_val[128];
> +	char var_val[1024]; /* changed from 128 to 1024 via bug 8251 */
>  	SQLINTEGER err;
>  };
>  
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> svn-commits mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/svn-commits
> 

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-dev mailing list