You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by an...@apache.org on 2006/04/03 15:34:14 UTC
svn commit: r391042 - /incubator/stdcxx/trunk/tests/src/char.cpp
Author: antonp
Date: Mon Apr 3 06:34:12 2006
New Revision: 391042
URL: http://svn.apache.org/viewcvs?rev=391042&view=rev
Log:
2006-04-03 Anton Pevtsov <an...@moscow.vdiweb.com>
* char.cpp (rw_widen): Added '\0' symbol to the end of string.
Modified:
incubator/stdcxx/trunk/tests/src/char.cpp
Modified: incubator/stdcxx/trunk/tests/src/char.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/src/char.cpp?rev=391042&r1=391041&r2=391042&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/char.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/char.cpp Mon Apr 3 06:34:12 2006
@@ -247,6 +247,7 @@
if (src) {
// copy src into dst
memcpy (dst, src, len);
+ dst [len] = '\0';
}
else {
// set dst to all NUL