From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3893 invoked by alias); 8 Oct 2007 12:21:24 -0000 Received: (qmail 3882 invoked by uid 22791); 8 Oct 2007 12:21:23 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 Oct 2007 12:21:20 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id EF795187025 for ; Mon, 8 Oct 2007 14:26:01 +0200 (CEST) From: "Pierre Muller" To: Subject: [RFA] ARI fix: Remove asprintf in breakpoint.c Date: Mon, 08 Oct 2007 12:21:00 -0000 Message-ID: <009c01c809a5$c05be1c0$4113a540$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us 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: 2007-10/txt/msg00135.txt.bz2 Trying to reduce the number of critical errors in http://sourceware.org/gdb/current/ari/ Is this one OK to commit? Pierre Muller ChangeLog entry: 2007-10-08 Pierre Muller * breakpoint.c (print_one_breakpoint_location): ARI fix: Replace asprintf by xstrprintf. Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.271 diff -u -p -r1.271 breakpoint.c --- breakpoint.c 1 Oct 2007 00:17:57 -0000 1.271 +++ breakpoint.c 8 Oct 2007 12:11:31 -0000 @@ -3526,7 +3526,7 @@ print_one_breakpoint_location (struct br if (part_of_multiple) { char *formatted; - asprintf (&formatted, "%d.%d", b->number, loc_number); + formatted = xstrprintf ("%d.%d", b->number, loc_number); ui_out_field_string (uiout, "number", formatted); xfree (formatted); }