You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/09/14 16:01:01 UTC
svn commit: r575684 - /incubator/stdcxx/trunk/util/runall.cpp
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 <Fa...@epam.com>
* 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;