Author: sebor
Date: Sun Mar 30 16:09:27 2008
New Revision: 642835

URL: http://svn.apache.org/viewvc?rev=642835&view=rev
Log:
2008-03-30  Martin Sebor  <[EMAIL PROTECTED]>

        * tests/localization/22.locale.time.put.cpp (make_LC_TIME): Added
        an std:: qualification to a call to strlen() missed in rev 604038
        to appease strictly conforming compilers such as EDG eccp, or Sun
        C++.

Modified:
    stdcxx/trunk/tests/localization/22.locale.time.put.cpp

Modified: stdcxx/trunk/tests/localization/22.locale.time.put.cpp
URL: 
http://svn.apache.org/viewvc/stdcxx/trunk/tests/localization/22.locale.time.put.cpp?rev=642835&r1=642834&r2=642835&view=diff
==============================================================================
--- stdcxx/trunk/tests/localization/22.locale.time.put.cpp (original)
+++ stdcxx/trunk/tests/localization/22.locale.time.put.cpp Sun Mar 30 16:09:27 
2008
@@ -636,7 +636,10 @@
     const char* const locname =
         rw_localedef ("", srcfname, cmfname, "test-locale");
 
-    if (locname && (strlen(locname) < sizeof locnamebuf))
+    // avoid copying into buffer if it's not big enough: this
+    // this affect the efficiency of the function but not its
+    // behavior
+    if (locname && std::strlen (locname) < sizeof locnamebuf)
         std::strcpy (locnamebuf, locname);
 
     // remove temporary files


Reply via email to