Skip to Content.
Sympa Menu

freetds - RE: [freetds] ODBC Fix

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] ODBC Fix
  • Date: Wed, 26 Mar 2003 15:00:51 -0500

> From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> Sent: March 26, 2003 2:54 PM
> >
> > $ diff connectparams.c connectparams.c~
> > 317c317
> > < if (vasprintf(&fn, "%s/.odbc.ini", &p) > 0) {
> > ---
> > > if (vasprintf(&fn, "%s/.odbc.ini", p) > 0) {
> >
>
> I didn't find your code (seem already fixed in both 0.61 and 0.62) ...

It's there in CVS, last function in the file:

char *p;
[...]
/*
* Second, try the HOME environment variable
*/
if (!ret && (p = tds_get_homedir()) != NULL) {
fn = NULL;
if (vasprintf(&fn, "%s/.odbc.ini", p) > 0) {
ret = fopen(fn, "r");
free(fn);
}
free(p);
}

Problem is, p should be va_list, not char*.

--jkl


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.





Archive powered by MHonArc 2.6.24.

Top of Page