2009-12-06 04:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbide/ideparseexpr.c
    ! Fixed to use hb_strncpy() instead of strncpy().

  * contrib/hbwin/win_os.prg
    + Added comment to indicate parameter accepted as reference.
This commit is contained in:
Viktor Szakats
2009-12-06 03:11:48 +00:00
parent 7a986994f2
commit 5c830ca710
3 changed files with 10 additions and 5 deletions

View File

@@ -17,6 +17,13 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-06 04:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbide/ideparseexpr.c
! Fixed to use hb_strncpy() instead of strncpy().
* contrib/hbwin/win_os.prg
+ Added comment to indicate parameter accepted as reference.
2009-12-06 03:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
* contrib/hbwin/win_reg.prg
@@ -124,7 +131,7 @@
! Fixed to use hb_strncat() instead of strcat().
! Fixed unsafe '!' oparator usage. (MSVC C++ warning)
; TOFIX: There is still one unsafe strncpy() usage, but I can't fix it.
Anyone?
Anyone? [DID IT]
2009-12-05 15:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbide/ideparseexpr.c

View File

@@ -289,9 +289,7 @@ HB_FUNC( PARSEXPR ) /* ( c, bHonorSpacing, bInRemark, bUpperKeyWord, bKeepCommen
{
if( bKeepComments )
{
/* TOFIX: To use hb_strncpy() */
strncpy( szNextWord + wordlen, pszExpr, npos + 1 );
szNextWord[ wordlen + npos + 1 ] = '\0';
hb_strncpy( szNextWord + wordlen, pszExpr, sizeof( szNextWord ) - 1 - wordlen );
lenwords++;
hb_arrayAdd( paExpr, hb_itemPutC( pTemp, szNextWord ) );
}

View File

@@ -114,7 +114,7 @@ FUNCTION WIN_OSNETREGOK( lSetIt, lDoVista )
RETURN bRetVal
FUNCTION WIN_OSNETVREDIROK( nResult )
FUNCTION WIN_OSNETVREDIROK( /* @ */ nResult )
LOCAL a
nResult := 0