From 370890e0e181f990140b9ce0b2d1c44415e2fd5b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 3 Mar 2010 02:14:31 +0000 Subject: [PATCH] 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) --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbmisc/hbeditc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 922fabfed4..b6a812ff42 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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. diff --git a/harbour/contrib/hbmisc/hbeditc.c b/harbour/contrib/hbmisc/hbeditc.c index ed285b7a18..5317378e9a 100644 --- a/harbour/contrib/hbmisc/hbeditc.c +++ b/harbour/contrib/hbmisc/hbeditc.c @@ -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