defncopy core dump

Nem W Schlecht <[email protected]> Tue, 2 May 2017 20:12:49 -0500
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CA+2x6-JbfkwAVULWOGOG3Bq9FZ_yBAu7E8VfmCsizyuRONJPsQ@mail.gmail.com>
Hello all,

Sorry, but it's been awhile since I compiled freetds (version 1.00.1
has been working just fine for me).

My old favorite tool, defncopy, is core dumping again. :)

Looks like these lines here:

577,578
        if (sizeof(sql_text) <= dbcollen(dbproc, ctext) ) {
            assert(sizeof(sql_text) > dbcollen(dbproc, ctext));

The equal sign was moved from the line 578 to 577.  This causes
defncopy to core dump for me (Cygwin on Windows).

If I move the equal sign back to the way it was in my older copy of
code (1.00.1), then defncopy works perfectly again:

577,578
        if (sizeof(sql_text) < dbcollen(dbproc, ctext) ) {
            assert(sizeof(sql_text) >= dbcollen(dbproc, ctext));

I see in the Changelog a change made by John Kendall on Aug 25th
mentioning a fix for defncopy for ASE servers.  Not sure how to get
things to work for both systems.

Thanks all! :)

-- 
Nem W Schlecht
"Perl did the magic. I just waved the wand."