public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  Bug in server_test.c
@ 2008-03-24 14:16 Grant Edwards
  2008-03-24 14:29 ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Edwards @ 2008-03-24 14:16 UTC (permalink / raw
  To: gentoo-user

There appears to be a bug in server_test.c:

ecos-opt/net/net/common/current/tests/server_test.c

    94	
    95	#ifdef CYGPKG_LIBC_STDIO        
    96	        sprintf(buf, "Hello %s:%d\n", inet_ntoa(client_addr.sin_addr), ntohs(client_addr.sin_port));
    97	#else        
    98	        strcpy(buf, "Hello ");
    99	        strcat(buf, inet_ntoa(client_addr.sin_addr));
   100	        strcat(buf,":");
   101	        strcat(buf, atoi(ntohs(client_addr.sin_port)));
   102	        strcat(buf,"\n");
   103	#endif

In line 101, the call to atoi() doesn't look right.
Shouldn't that be a call to itoa() (assuming such a function
existed)?

-- 
Grant


-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-user]  Re: Bug in server_test.c
  2008-03-24 14:16 [gentoo-user] Bug in server_test.c Grant Edwards
@ 2008-03-24 14:29 ` Grant Edwards
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Edwards @ 2008-03-24 14:29 UTC (permalink / raw
  To: gentoo-user

Oops.  Wrong group...

On 2008-03-24, Grant Edwards <grante@visi.com> wrote:
> There appears to be a bug in server_test.c:
>
> ecos-opt/net/net/common/current/tests/server_test.c

-- 
Grant


-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-24 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24 14:16 [gentoo-user] Bug in server_test.c Grant Edwards
2008-03-24 14:29 ` [gentoo-user] " Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox