🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.programming
Article #318

Re: ciekawostka ....

#318
From: le... Lech Szychowski
Date: Wed, 14 Feb 1996 00:00
18 lines
1129 bytes
Krzysztof Pulapa (pul...@edison.pk.edu.pl) wrote:

: 5)  pp=gethostbyaddr((char *)&ii, INADDRSZ, AF_INET);
: 6)  strcpy(hname,pp->h_name);
: 7)  if (pp) return(call_socket(hname,port)); else return(-1);

To nie wyglada na bezpieczna/sensowna kolejnosc - jesli (5) zwroci NULL,
to (6) sie wywali, wiec test (7) mozna sobie zapewne darowac.

--

	Leszek.

+============================================================================+
| le...@pse.pl 2:480/33.7                  - REAL programmers use INTEGERS - |
| My personal opinions are just mine.                                        |
| If there is anyone I speak for, then most likely it's me.                  |
+============================================================================+
Technical Details
Message-ID: <4ft2gk$mar@bilbo.nask.org.pl>
Path: mbox-mo1.pugleaf.net!unknown!not-for-mail
References: <DMrKpx.Bz1@cyf-kr.edu.pl>

Show Full Headers
Complete Article Headers
From: le...@pse.pl (Lech Szychowski)
Subject: Re: ciekawostka ....
Date: 1996/02/14
Message-ID: <4ft2gk$mar@bilbo.nask.org.pl>
X-Deja-AN: 139405181
references: <DMrKpx.Bz1@cyf-kr.edu.pl>
organization: Polish Power Grid Company
newsgroups: pl.comp.programming
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit