2010-03-02 18:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbct/atrepl.c
    ! Fixed an 'off by one' buffer bug causing GPF in ATREPL().
      Reported by Alexandr Okhotnikov.
This commit is contained in:
Viktor Szakats
2010-03-02 17:26:51 +00:00
parent 2a1c9afb2c
commit 936dfd3191
2 changed files with 6 additions and 2 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-03-02 18:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/atrepl.c
! Fixed an 'off by one' buffer bug causing GPF in ATREPL().
Reported by Alexandr Okhotnikov.
2010-03-02 16:40 UTC+0100 Maurilio Longo (maurilio.longo@libero.it)
* src/rtl/filesys.c
@@ -32,7 +36,7 @@
2010-03-02 15:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
+ Implemented HB_GTI_CLOSABLE support for GTWIN.
Needs to Windows 2000 or upper.
Needs Windows 2000 or upper.
2010-03-02 00:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddsql/sddodbc/sddodbc.c

View File

@@ -200,7 +200,7 @@ HB_FUNC( ATREPL )
HB_SIZE ulMatchCounter = 0;
sRetStrLen = sStrLen;
pcRetStr = ( char * ) hb_xgrab( sRetStrLen );
pcRetStr = ( char * ) hb_xgrab( sRetStrLen + 1 );
hb_xmemcpy( pcRetStr, pcString, sRetStrLen );
pcRetSubStr = pcRetStr + sIgnore;