Title: [102177] trunk/Source/WebCore
Revision
102177
Author
[email protected]
Date
2011-12-06 14:02:15 -0800 (Tue, 06 Dec 2011)

Log Message

Put length in its own variable in KURL copyASCII
https://bugs.webkit.org/show_bug.cgi?id=73928

Reviewed by Darin Adler.

* platform/KURL.cpp:
(WebCore::copyASCII):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (102176 => 102177)


--- trunk/Source/WebCore/ChangeLog	2011-12-06 21:58:16 UTC (rev 102176)
+++ trunk/Source/WebCore/ChangeLog	2011-12-06 22:02:15 UTC (rev 102177)
@@ -1,3 +1,13 @@
+2011-12-06  Benjamin Poulain  <[email protected]>
+
+        Put length in its own variable in KURL copyASCII
+        https://bugs.webkit.org/show_bug.cgi?id=73928
+
+        Reviewed by Darin Adler.
+
+        * platform/KURL.cpp:
+        (WebCore::copyASCII):
+
 2011-12-06  Dana Jansens  <[email protected]>
 
         [chromium] Set opaque flag for ImageLayerChromium

Modified: trunk/Source/WebCore/platform/KURL.cpp (102176 => 102177)


--- trunk/Source/WebCore/platform/KURL.cpp	2011-12-06 21:58:16 UTC (rev 102176)
+++ trunk/Source/WebCore/platform/KURL.cpp	2011-12-06 22:02:15 UTC (rev 102177)
@@ -264,7 +264,8 @@
         memcpy(dest, string.characters8(), string.length());
     else {
         const UChar* src = ""
-        for (size_t i = 0; i < string.length(); i++)
+        size_t length = string.length();
+        for (size_t i = 0; i < length; i++)
             dest[i] = static_cast<char>(src[i]);
     }
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to