From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5598 invoked by alias); 19 Oct 2011 08:28:54 -0000 Received: (qmail 5584 invoked by uid 22791); 19 Oct 2011 08:28:51 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_CP X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Oct 2011 08:28:38 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9J8SbRu009034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 19 Oct 2011 04:28:38 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9J8SZYc014162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 19 Oct 2011 04:28:37 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9J8SYUI009076; Wed, 19 Oct 2011 10:28:34 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9J8SXxj009070; Wed, 19 Oct 2011 10:28:33 +0200 Date: Wed, 19 Oct 2011 08:40:00 -0000 From: Jan Kratochvil To: Mark Kettenis Cc: gdb-patches@sourceware.org, ppluzhnikov@google.com Subject: Re: [patch 1/3] Code cleanup: strcpy + strlen -> sprintf Message-ID: <20111019082833.GA8886@host1.jankratochvil.net> References: <20111018205108.GA31533@host1.jankratochvil.net> <201110182209.p9IM9o3F026010@glazunov.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201110182209.p9IM9o3F026010@glazunov.sibelius.xs4all.nl> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00523.txt.bz2 On Wed, 19 Oct 2011 00:09:50 +0200, Mark Kettenis wrote: > > I hope it is not due to incompatible sprintf on > > MS-Windows CE or some such gdbserver platform. > > Please use snprintf(3) instead of sprintf(3). I am unfamiliar with gdbserver but there is no single use of snprintf while 75 uses of sprintf. Isn't it for some platform compatibility? Thanks, Jan