From 3fd7d52bcc5dfa8f4b557ae2cfc87d867f18efd2 Mon Sep 17 00:00:00 2001 From: Xavi Date: Wed, 13 Jan 2010 23:32:51 +0000 Subject: [PATCH] * contrib/hbwin/win_prn3.c * pacified warnings --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbwin/win_prn3.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 1e3f99806f..4fc200a22a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-01-14 00:30 UTC+0100 Xavi (jarabal/at/gmail.com) + * harbour/contrib/hbwin/win_prn3.c + * pacified warnings + 2010-01-13 22:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/achoice.prg ! fixed RTE reported by Robert Skowronek - thanks for the code example diff --git a/harbour/contrib/hbwin/win_prn3.c b/harbour/contrib/hbwin/win_prn3.c index feeeb52ec5..a56e390a94 100644 --- a/harbour/contrib/hbwin/win_prn3.c +++ b/harbour/contrib/hbwin/win_prn3.c @@ -81,6 +81,8 @@ static TCHAR * hb_tstrncat( TCHAR * pDest, const TCHAR * pSource, ULONG ulLen ) ulLen--; } + while( ulLen-- && ( *pDest++ = *pSource++ ) ) {}; + return pBuf; }