Skip to Content.
Sympa Menu

freetds - RE: [freetds] HP/UX and iconv

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] HP/UX and iconv
  • Date: Fri, 12 Dec 2003 15:10:38 -0500

> From: Christos Zoulas [mailto:christos AT zoulas.com]
> Sent: December 12, 2003 2:55 PM
> | We take the address of outbytesleft. Because it's declared
> behind an int,
> | it's on a 4-byte boundary. Inside the iconv() function
> (our replacement),
> | there's this line:
> |
> | copybytes = (*inbytesleft < *outbytesleft)? *inbytesleft :
> | *outbytesleft;
> |
> | which generates a fixup message, see below. What to do?
>
> Fix the bug in the code :-) tds_iconv expects "size_t *", and you
> are passing it "unsigned int *". This will break on LP64 systems
> where size_t is unsigned long and sizeof(long) != sizeof(int).

What? Fix *my* bug? On a Friday?

OK, if you say so....

Thanks, Christos.

--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