2012-05-09 16:14 UTC+0200 Viktor Szakats (harbour syenar.net)

* src/common/hbdate.c
    ! hb_dateStrPut() fixed to never put non-digits in the
      result. F.e. in this case: ? 0d19700101 + 1100000000
This commit is contained in:
Viktor Szakats
2012-05-09 14:15:50 +00:00
parent 5f56dd3a9d
commit 9d1552d1cc
2 changed files with 7 additions and 2 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-05-09 16:14 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/common/hbdate.c
! hb_dateStrPut() fixed to never put non-digits in the
result. F.e. in this case: ? 0d19700101 + 1100000000
2012-05-09 11:24 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/hbqt/qtgui/hbqt_init.cpp
! use C syntax where C++ is not required

View File

@@ -281,10 +281,10 @@ void hb_dateStrPut( char * szDate, int iYear, int iMonth, int iDay )
szDate[ 2 ] = ( char ) ( ( ( iYear / 10 ) % 10 ) + '0' );
szDate[ 3 ] = ( char ) ( ( iYear % 10 ) + '0' );
szDate[ 4 ] = ( char ) ( ( iMonth / 10 ) + '0' );
szDate[ 4 ] = ( char ) ( ( ( iMonth / 10 ) % 10 ) + '0' );
szDate[ 5 ] = ( char ) ( ( iMonth % 10 ) + '0' );
szDate[ 6 ] = ( char ) ( ( iDay / 10 ) + '0' );
szDate[ 6 ] = ( char ) ( ( ( iDay / 10 ) % 10 ) + '0' );
szDate[ 7 ] = ( char ) ( ( iDay % 10 ) + '0' );
}
else