Changeset 223606 in webkit


Ignore:
Timestamp:
Oct 18, 2017 7:57:13 AM (6 years ago)
Author:
Konstantin Tokarev
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):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r223476 r223606  
     12017-10-18  Konstantin Tokarev  <annulen@yandex.ru>
     2
     3        REGRESSION(r217771): nullTerminatedWCharToString loses last character of input string
     4        https://bugs.webkit.org/show_bug.cgi?id=178444
     5
     6        Reviewed by Per Arne Vollan.
     7
     8        * wtf/text/win/WCharStringExtras.h:
     9        (WTF::nullTerminatedWCharToString):
     10
    1112017-10-17  Keith Miller  <keith_miller@apple.com>
    212
  • trunk/Source/WTF/wtf/text/win/WCharStringExtras.h

    r217771 r223606  
    6161inline String nullTerminatedWCharToString(const wchar_t* characters)
    6262{
    63     return wcharToString(characters, wcslen(characters) - 1);
     63    return wcharToString(characters, wcslen(characters));
    6464}
    6565
Note: See TracChangeset for help on using the changeset viewer.