Title: [223606] trunk/Source/WTF
Revision
223606
Author
[email protected]
Date
2017-10-18 07:57:13 -0700 (Wed, 18 Oct 2017)

Log Message

REGRESSION(r217771): nullTerminatedWCharToString loses last character of input string
https://bugs.webkit.org/show_bug.cgi?id=178444

Reviewed by Per Arne Vollan.

* wtf/text/win/WCharStringExtras.h:
(WTF::nullTerminatedWCharToString):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (223605 => 223606)


--- trunk/Source/WTF/ChangeLog	2017-10-18 14:18:24 UTC (rev 223605)
+++ trunk/Source/WTF/ChangeLog	2017-10-18 14:57:13 UTC (rev 223606)
@@ -1,3 +1,13 @@
+2017-10-18  Konstantin Tokarev  <[email protected]>
+
+        REGRESSION(r217771): nullTerminatedWCharToString loses last character of input string
+        https://bugs.webkit.org/show_bug.cgi?id=178444
+
+        Reviewed by Per Arne Vollan.
+
+        * wtf/text/win/WCharStringExtras.h:
+        (WTF::nullTerminatedWCharToString):
+
 2017-10-17  Keith Miller  <[email protected]>
 
         Change WebCore sources to work with unified source builds

Modified: trunk/Source/WTF/wtf/text/win/WCharStringExtras.h (223605 => 223606)


--- trunk/Source/WTF/wtf/text/win/WCharStringExtras.h	2017-10-18 14:18:24 UTC (rev 223605)
+++ trunk/Source/WTF/wtf/text/win/WCharStringExtras.h	2017-10-18 14:57:13 UTC (rev 223606)
@@ -60,7 +60,7 @@
 
 inline String nullTerminatedWCharToString(const wchar_t* characters)
 {
-    return wcharToString(characters, wcslen(characters) - 1);
+    return wcharToString(characters, wcslen(characters));
 }
 
 } // namespace WTF
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to