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 <[EMAIL PROTECTED]>
* 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])