From a07c314f5cb2638e2d89dab953bbb2f8894db7e2 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Sat, 20 Feb 2010 17:48:00 +0000 Subject: [PATCH] 2010-02-20 18:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/hbsocket.c ! fixed typo --- harbour/ChangeLog | 4 ++++ harbour/src/rtl/hbsocket.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2544903d04..59c05623b7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-02-20 18:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/hbsocket.c + ! fixed typo + 2010-02-20 18:36 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbsqlit3/hbsqlit3.c ! fixed to work without [U]LONGLONG defined in hbdefs.h diff --git a/harbour/src/rtl/hbsocket.c b/harbour/src/rtl/hbsocket.c index a10026c45b..d7d9c74944 100644 --- a/harbour/src/rtl/hbsocket.c +++ b/harbour/src/rtl/hbsocket.c @@ -3063,7 +3063,7 @@ PHB_ITEM hb_socketGetIFaces( int af, HB_BOOL fNoAliases ) { const char * cptr = strchr( pifr->ifr_name, ':' ); - len = cptr ? ( int ) ( pifr->ifr_name - cptr ) : + len = cptr ? ( int ) ( cptr - pifr->ifr_name ) : ( int ) strlen( pifr->ifr_name ); if( pLastName && len == iLastName && family == iLastFamily && memcmp( pLastName, pifr->ifr_name, len ) == 0 )