From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JdnTz-0003qE-27 for garchives@archives.gentoo.org; Mon, 24 Mar 2008 14:17:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D098E0795; Mon, 24 Mar 2008 14:17:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 47E2DE0795 for ; Mon, 24 Mar 2008 14:17:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D2D2067AE5 for ; Mon, 24 Mar 2008 14:17:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.532 X-Spam-Level: X-Spam-Status: No, score=-0.532 required=5.5 tests=[BAYES_00=-2.599, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v6mHir6c4D7Z for ; Mon, 24 Mar 2008 14:16:54 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id D863F67956 for ; Mon, 24 Mar 2008 14:16:51 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JdnTg-0004T2-Pt for gentoo-user@gentoo.org; Mon, 24 Mar 2008 14:16:44 +0000 Received: from 64.251.14.41 ([64.251.14.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Mar 2008 14:16:44 +0000 Received: from grante by 64.251.14.41 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Mar 2008 14:16:44 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Bug in server_test.c Date: Mon, 24 Mar 2008 14:16:39 +0000 (UTC) Message-ID: X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 64.251.14.41 User-Agent: slrn/0.9.8.1pl1 (Linux) Sender: news Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: 9b7ec3aa-7681-4224-8c49-0e8bdf4e2439 X-Archives-Hash: 24b8bfc6a6262b65313578fe8852d7d1 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