wcslen() returns length without terminating null character. I've put "- 1" there because originally that function was meant to be templated and operate on wchar[] literals.
Created attachment 324111 [details] Patch
Comment on attachment 324111 [details] Patch R=me.
Comment on attachment 324111 [details] Patch Clearing flags on attachment: 324111 Committed r223606: <https://trac.webkit.org/changeset/223606>
All reviewed patches have been landed. Closing bug.
<rdar://problem/35051595>