Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 53825 invoked from network); 14 Sep 2007 14:01:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2007 14:01:22 -0000 Received: (qmail 70117 invoked by uid 500); 14 Sep 2007 14:01:15 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 70105 invoked by uid 500); 14 Sep 2007 14:01:15 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 70094 invoked by uid 99); 14 Sep 2007 14:01:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 07:01:15 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2007 14:01:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 809041A983A; Fri, 14 Sep 2007 07:01:01 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r575684 - /incubator/stdcxx/trunk/util/runall.cpp Date: Fri, 14 Sep 2007 14:01:01 -0000 To: stdcxx-commits@incubator.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070914140101.809041A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Fri Sep 14 07:01:00 2007 New Revision: 575684 URL: http://svn.apache.org/viewvc?rev=575684&view=rev Log: 2007-09-14 Farid Zaripov * runall.cpp (main): Pass buf to strchr() call instead of target (we need char* result instead of const char*). Modified: incubator/stdcxx/trunk/util/runall.cpp Modified: incubator/stdcxx/trunk/util/runall.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/runall.cpp?rev=575684&r1=575683&r2=575684&view=diff ============================================================================== --- incubator/stdcxx/trunk/util/runall.cpp (original) +++ incubator/stdcxx/trunk/util/runall.cpp Fri Sep 14 07:01:00 2007 @@ -570,7 +570,8 @@ if (target) { /* remove terminating newline character if present */ - if (char* pos = strchr (target, '\n')) + assert (buf == target); + if (char* pos = strchr (buf, '\n')) *pos = '\0'; if (*target) { ++progs_count;