stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r320944 - /incubator/stdcxx/trunk/include/ansi/cwchar
Date Thu, 13 Oct 2005 23:34:56 GMT
Author: sebor
Date: Thu Oct 13 16:34:53 2005
New Revision: 320944

URL: http://svn.apache.org/viewcvs?rev=320944&view=rev
Log:
2005-10-13  Martin Sebor  <sebor@roguewave.com>

	STDCXX-48
	* cwchar (wmemcpy): Incremented the source pointer in every
	iteration of the loop.

Modified:
    incubator/stdcxx/trunk/include/ansi/cwchar

Modified: incubator/stdcxx/trunk/include/ansi/cwchar
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/ansi/cwchar?rev=320944&r1=320943&r2=320944&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/cwchar (original)
+++ incubator/stdcxx/trunk/include/ansi/cwchar Thu Oct 13 16:34:53 2005
@@ -3,7 +3,7 @@
  *
  * cwchar - C++ Standard library interface to the ANSI C header wchar.h
  *
- * $Id: //stdlib/dev/include/ansi/cwchar#48 $
+ * $Id$
  *
  ***************************************************************************
  *
@@ -619,7 +619,7 @@
 
     inline wchar_t* wmemcpy (wchar_t *__dst, const wchar_t *__src, size_t __n)
     {
-        for (wchar_t *__d = __dst; __n--; ++__d)
+        for (wchar_t *__d = __dst; __n--; ++__d, ++__src)
             *__d = *__src;
 
         return __dst;



Mime
View raw message