2008-11-16 23:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)

* contrib/gtwvg/wvgsink.c
    * Minor cleanup to hb_strncat() (it's best to use 
      'sizeof( target ) - 1' for size, if target is a char 
      array. The buffer was off by one on the good direction.)

  * ChangeLog
    ! ChangeLog was again saved as Unicode. Please guys TURN 
      THIS OFF for good.
This commit is contained in:
Viktor Szakats
2008-11-16 22:08:33 +00:00
parent 3161755cff
commit be56aaa8b8
2 changed files with 15 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* $Id$
*/
@@ -8,6 +8,17 @@
2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2008-11-16 23:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtwvg/wvgsink.c
* Minor cleanup to hb_strncat() (it's best to use
'sizeof( target ) - 1' for size, if target is a char
array. The buffer was off by one on the good direction.)
* ChangeLog
! ChangeLog was again saved as Unicode. Please guys TURN
THIS OFF for good. (fixed in prev commit, but I've left
this here anyway)
2008-11-16 13:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
! Slight fix in WM_PAINT message.

View File

@@ -622,13 +622,13 @@ HB_FUNC( HB_AX_SETUPCONNECTIONPOINT )
HB_FUNC( HB_AX_ATLAXWININIT )
{
PATLAXWININIT AtlAxWinInit;
char szLibName[ MAX_PATH + 1 ] = { 0 } ;
char szLibName[ MAX_PATH + 1 ] = { 0 };
BOOL bRet = FALSE;
if( !hLib )
{
GetSystemDirectory( szLibName, MAX_PATH );
hb_strncat( szLibName, "\\atl.dll", MAX_PATH -1 );
hb_strncat( szLibName, "\\atl.dll", sizeof( szLibName ) - 1 );
hLib = LoadLibrary( ( LPCSTR ) szLibName );
if( hLib )
@@ -654,7 +654,7 @@ HB_FUNC( HB_AX_ATLAXWININIT )
bRet = TRUE;
}
hb_retl( bRet);
hb_retl( bRet );
}
//---------------------------------------------------------------------------//
HB_FUNC( HB_AX_ATLAXCREATECONTROL )