stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r575684 - /incubator/stdcxx/trunk/util/runall.cpp
Date Fri, 14 Sep 2007 14:01:01 GMT
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 <Farid_Zaripov@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;



Mime
View raw message