From 6d5ea44fbc7675371715f5742935bb5035626e1e Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Thu, 21 Jan 2010 10:51:12 +0000 Subject: [PATCH] 2010-01-21 11:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbnetio/netiocli.c * respect passed parameters as default values in netio_decode() --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbnetio/netiocli.c | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 562a4c5d85..af62924525 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-01-21 11:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbnetio/netiocli.c + * respect passed parameters as default values in netio_decode() + 2010-01-21 10:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/common/hbffind.c * harbour/src/rtl/filesys.c diff --git a/harbour/contrib/hbnetio/netiocli.c b/harbour/contrib/hbnetio/netiocli.c index 2c98eb927b..a15eea1753 100644 --- a/harbour/contrib/hbnetio/netiocli.c +++ b/harbour/contrib/hbnetio/netiocli.c @@ -660,11 +660,13 @@ HB_FUNC( NETIO_DECODE ) int iPort, iTimeOut, iPassLen, iLevel, iStrategy; HB_BOOL fResult; - pszServer = NULL; - pszPasswd = NULL; - iPort = iTimeOut = iPassLen = 0; - iLevel = HB_ZLIB_COMPRESSION_DISABLE; - iStrategy = HB_ZLIB_STRATEGY_DEFAULT; + pszServer = hb_parc( 2 ); + iPort = hb_parni( 3 ); + iTimeOut = hb_parni( 4 ); + pszPasswd = hb_parc( 5 ); + iPassLen = ( int ) hb_parclen( 5 ); + iLevel = hb_parnidef( 6, HB_ZLIB_COMPRESSION_DISABLE ); + iStrategy = hb_parnidef( 7, HB_ZLIB_STRATEGY_DEFAULT ); s_fileGetConnParam( &pszServer, &iPort, &iTimeOut, &pszPasswd, &iPassLen );