stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r708960 - /stdcxx/branches/4.2.x/tests/src/file.cpp
Date Wed, 29 Oct 2008 17:57:42 GMT
Author: faridz
Date: Wed Oct 29 10:57:41 2008
New Revision: 708960

URL: http://svn.apache.org/viewvc?rev=708960&view=rev
Log:
2008-10-29  Farid Zaripov  <faridz@apache.org>

	* tests/src/file.cpp (rw_tmpnam): Fixed calculation of the string length.

Modified:
    stdcxx/branches/4.2.x/tests/src/file.cpp

Modified: stdcxx/branches/4.2.x/tests/src/file.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/src/file.cpp?rev=708960&r1=708959&r2=708960&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/src/file.cpp (original)
+++ stdcxx/branches/4.2.x/tests/src/file.cpp Wed Oct 29 10:57:41 2008
@@ -229,7 +229,7 @@
         // name template (it doesn't really matter how many there are
         // as long as it's at least one, but one looks better than two
         // in diagnostic messages)
-        size_t len = strlen (tmpdir) - 1;
+        size_t len = strlen (tmpdir);
 
         memcpy (buf, tmpdir, len);
         if (_RWSTD_PATH_SEP != buf [len - 1])



Mime
View raw message