2007-11-26 09:46 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/bin/hb-func.sh
    ! fixed typo

  * harbour/contrib/gtwvg/gtwvt.c
    * use hb_strncpy() instead of strcpy()
This commit is contained in:
Przemyslaw Czerpak
2007-11-26 08:47:09 +00:00
parent 9373ba73d8
commit 1834ead810
3 changed files with 11 additions and 4 deletions

View File

@@ -8,6 +8,13 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2007-11-26 09:46 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
! fixed typo
* harbour/contrib/gtwvg/gtwvt.c
* use hb_strncpy() instead of strcpy()
2007-11-26 08:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/gtwvg/gtwvt.h
* harbour/contrib/gtwvg/gtwvt.c

View File

@@ -274,10 +274,10 @@ while [ \$n -lt \${#P[@]} ]; do
DIROUT="\${d%}"
elif [ -d "\${d%/*}" ]; then
DIROUT="\${d%/*}"; FILEOUT="\${d##*/}"; p="-o\${d}"
[ \${HB} != "cc" ] || p="-o\${d%.*}"
[ \${HB} = "cc" ] || p="-o\${d%.*}"
elif [ -n "\${d}" ]; then
FILEOUT="\${d}"; p="-o\${d}"
[ \${HB} != "cc" ] || p="-o\${d%.*}"
[ \${HB} = "cc" ] || p="-o\${d%.*}"
fi ;;
-static) HB_STATIC="yes" ;;
-fullstatic) HB_STATIC="full" ;;

View File

@@ -1913,9 +1913,9 @@ BOOL HB_EXPORT hb_wvt_gtSetFont( char *fontFace, int height, int width, int Bold
_s.fontQuality = Quality;
size = strlen( fontFace );
if( ( size > 0 ) && ( size < LF_FACESIZE-1 ) )
if( size > 0 && size < LF_FACESIZE - 1 )
{
strcpy( _s.fontFace, fontFace );
hb_strncpy( _s.fontFace, fontFace, sizeof( _s.fontFace ) - 1 );
}
if( _s.hWnd )
{