diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b56b8f0972..78db62776e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -7,6 +7,13 @@ For example: 2002-12-01 23:12 UTC+0100 Foo Bar */ + + * source/rtl/isprint.c + ! Made more multiplatform by passing the complete printer + name to the fsOpen() function. + * Platform specific uiPort moved to DOS branch. + + Added support for PRN under DOS. + + Added a C callable interface hb_printerIsReady() (not yet prototyped in the central headers). + Win32 version reworked so that it checks for the printer name passed to the function. This also made the program diff --git a/harbour/source/rtl/descend.c b/harbour/source/rtl/descend.c index eb0a376809..0f18654735 100644 --- a/harbour/source/rtl/descend.c +++ b/harbour/source/rtl/descend.c @@ -75,7 +75,7 @@ HB_FUNC( DESCEND ) if( HB_IS_STRING( pItem ) ) { ULONG ulLen = hb_itemGetCLen( pItem ); - char * szBuffer = ( char * ) hb_xgrab( ulLen ); + char * szBuffer = ( char * ) hb_xgrab( ulLen + 1); hb_strDescend( szBuffer, hb_itemGetCPtr( pItem ), ulLen ); hb_retclen( szBuffer, ulLen ); hb_xfree( szBuffer ); diff --git a/harbour/source/rtl/transfrm.c b/harbour/source/rtl/transfrm.c index 711a5d380a..0ed272a4fe 100644 --- a/harbour/source/rtl/transfrm.c +++ b/harbour/source/rtl/transfrm.c @@ -196,7 +196,8 @@ HB_FUNC( TRANSFORM ) BOOL bAnyPic = FALSE; /* Grab enough */ - szResult = ( char * ) hb_xgrab( ulExpLen + ulPicLen ); + + szResult = ( char * ) hb_xgrab( ulExpLen + ulPicLen + 1); ulResultPos = 0; /* Support date function for strings */