stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r389217 - /incubator/stdcxx/trunk/tests/src/char.cpp
Date Mon, 27 Mar 2006 18:17:36 GMT
Author: sebor
Date: Mon Mar 27 10:17:34 2006
New Revision: 389217

URL: http://svn.apache.org/viewcvs?rev=389217&view=rev
Log:
2006-03-27  Martin Sebor  <sebor@roguewave.com>

	* char.cpp (_rw_fmtstringv): Used _RWSTD_VA_COPY() instead of direct
	assignment to va_list (which may have array type) .

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=389217&r1=389216&r2=389217&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/char.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/char.cpp Mon Mar 27 10:17:34 2006
@@ -556,7 +556,8 @@
         pva = va_arg (va, va_list*);
 
         RW_ASSERT (0 != pva);
-        va_save = *pva;
+
+        _RWSTD_VA_COPY (va_save, *pva);
 
         // extract the width from rw_snprintfa's variable argument
         // list pass through to us by the caller
@@ -583,7 +584,7 @@
 
                 RW_ASSERT (0 != pva);
 
-                va_save = *pva;
+                _RWSTD_VA_COPY (va_save, *pva);
             }
 
             // extract the width from rw_snprintfa's variable argument
@@ -604,13 +605,13 @@
 
         RW_ASSERT (0 != pva);
 
-        va_save = *pva;
+        _RWSTD_VA_COPY (va_save, *pva);
     }
 
     if ('G' != fmt [0] || 's' != fmt [1] || '\0' != fmt [2]) {
 
         // restore caller's (potentially modified) va_list
-        *pva = va_save;
+        _RWSTD_VA_COPY (*pva, va_save);
 
         --nested_call;
 



Mime
View raw message