From 75f58f012fa31ad3cd55b208f460dcdd7235cad1 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Mon, 9 Nov 2009 12:23:48 +0000 Subject: [PATCH] 2009-11-09 13:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/cdpapi.c ! fixed very bad typo in new CDP API code - hb_cdpnDup2() was not updating original string size. This bug was critical for RDDs. --- harbour/ChangeLog | 5 +++++ harbour/src/rtl/cdpapi.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index f596664fbf..9e2f56f8e6 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-11-09 13:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/cdpapi.c + ! fixed very bad typo in new CDP API code - hb_cdpnDup2() was not updating + original string size. This bug was critical for RDDs. + 2009-11-08 12:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/gtwvg/wvgtoolb.prg * contrib/gtwvg/wvgutils.c diff --git a/harbour/src/rtl/cdpapi.c b/harbour/src/rtl/cdpapi.c index cf71cce6c9..94447b9e37 100644 --- a/harbour/src/rtl/cdpapi.c +++ b/harbour/src/rtl/cdpapi.c @@ -1361,7 +1361,7 @@ const char * hb_cdpnDup2( const char * pSrc, ULONG ulSrc, char * pDst, ULONG * pulDst, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdpOut ) { - hb_cdpTransTo( pSrc, ulSrc, pDst, *pulDst, cdpIn, cdpOut ); + * pulDst = hb_cdpTransTo( pSrc, ulSrc, pDst, *pulDst, cdpIn, cdpOut ); return pDst; }