From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6888 invoked by alias); 18 Oct 2011 22:10:17 -0000 Received: (qmail 6880 invoked by uid 22791); 18 Oct 2011 22:10:16 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_CP X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Oct 2011 22:09:59 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id p9IM9qDs003905; Wed, 19 Oct 2011 00:09:52 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id p9IM9o3F026010; Wed, 19 Oct 2011 00:09:50 +0200 (CEST) Date: Wed, 19 Oct 2011 00:24:00 -0000 Message-Id: <201110182209.p9IM9o3F026010@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: gdb-patches@sourceware.org, ppluzhnikov@google.com In-reply-to: <20111018205108.GA31533@host1.jankratochvil.net> (message from Jan Kratochvil on Tue, 18 Oct 2011 22:51:08 +0200) Subject: Re: [patch 1/3] Code cleanup: strcpy + strlen -> sprintf References: <20111018205108.GA31533@host1.jankratochvil.net> 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/msg00517.txt.bz2 > > Hi, > > I do not understand much the reasons, maybe a fear about violating C > sequence points. 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).