[freetds] ODBC Fix
Brian_Teravskis at cargill.com
Brian_Teravskis at cargill.com
Wed Mar 26 13:01:33 EST 2003
Hello all,
I'm not a developer, and I'm not part of this list, but I found a
problem in the ODBC interface of FreeTDS 0.61 that I thought I should
pass along.
I'm running on a Linux system using iODBC. I have the odbc.ini file
stored in the /etc directory. When I run the iODBC odbctest program I
get a segmentation fault pointing to a call to vasprintf located in the
odbc/connectparams.c file. After some fiddling around with a test
program using vasprintf() I came up with the following change to make it
work:
$ diff connectparams.c connectparams.c~
317c317
< if (vasprintf(&fn, "%s/.odbc.ini", &p) > 0) {
---
> if (vasprintf(&fn, "%s/.odbc.ini", p) > 0) {
** note the &p change. This is in the function tdoGetIniFileName()
I hope this helps someone out. If you need more information please
e-mail your request to me.
Regards,
Brian
More information about the FreeTDS
mailing list