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

* contrib/hbmisc/hbeditc.c
    ! One fix to prev right away. (in former strcpy)
This commit is contained in:
Viktor Szakats
2010-03-03 02:14:31 +00:00
parent bfc7084c7f
commit 370890e0e1
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-03-03 03:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/hbeditc.c
! One fix to prev right away. (in former strcpy)
2010-03-03 03:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmisc/hbeditc.c
! Replaced unsafe string calls with safe one.

View File

@@ -333,7 +333,7 @@ static void AddText( PHB_EDITOR pEd, const char * adres )
{
/* there is enough room in text buffer
*/
hb_strncpy( pEd->begin + dlold, adres, dl - 1 );
hb_strncpy( pEd->begin + dlold, adres, dl );
pEd->text_length += dl;
}
else