From f863d5ff5c16310c69dcd18f7c8bca36b8e2d65f Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 15 Sep 2009 15:11:23 +0000 Subject: [PATCH] 2009-09-15 17:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbnetio/netiocli.c ! added missing in previous commit casting for C++ mode --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbnetio/netiocli.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index ffedf1d217..1b5ef64afd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-09-15 17:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbnetio/netiocli.c + ! added missing in previous commit casting for C++ mode + 2009-09-15 16:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbapifs.h * harbour/source/rtl/filebuf.c diff --git a/harbour/contrib/hbnetio/netiocli.c b/harbour/contrib/hbnetio/netiocli.c index 631d09116f..b2a404025f 100644 --- a/harbour/contrib/hbnetio/netiocli.c +++ b/harbour/contrib/hbnetio/netiocli.c @@ -565,7 +565,7 @@ static BOOL s_fileRename( const char * pszFileName, const char * pszNewName ) BYTE msgbuf[ NETIO_MSGLEN ]; UINT16 len1 = ( UINT16 ) strlen( pszFileName ); UINT16 len2 = ( UINT16 ) strlen( pszNewName ); - BYTE * pBuffer = hb_xgrab( len1 + len2 ); + BYTE * pBuffer = ( BYTE * ) hb_xgrab( len1 + len2 ); memcpy( pBuffer, pszFileName, len1 ); memcpy( pBuffer + len1, pszNewName, len2 );