Ludek Finstrle wrote:
> I found the problem in snprintf on linux (maybe another unix) boxes
> in info.c (CVS HEAD). The problematic part is something like:
> buf = "text";
> snprintf(buf,size,"%s append",buf);
> buf = "text append" on Windows (MS VC compiler)
> buf = " append" on linux (gcc compiler)
> I solve it this way (main idea):
> snprintf(buf + strlen(buf), " append");
Hmm bad news.
If so, it may be better to use the sequence like the following for example.
/* Initialize */
query_ptr = columns_query;
bufsize_res = sizeof(columns_query);
if ((slen = snprintf(query_ptr, bufsize_res, .., )) <= 0)
.. error_handling ..
query_ptr += slen;
bufsize_res -= slen;
In response to
pgsql-odbc by date
|Next:||From: Hiroshi Inoue||Date: 2006-06-08 23:53:38|
|Subject: Re: CVS and open cursor|
|Previous:||From: Mr. DBA||Date: 2006-06-08 21:40:21|
|Subject: windows ODBC driver issues|