client/X11: do not fixup HTML data length
authorilammy <a.lozovsky@gmail.com>
Sun, 28 May 2017 21:10:16 +0000 (00:10 +0300)
committerilammy <a.lozovsky@gmail.com>
Wed, 31 May 2017 02:01:30 +0000 (05:01 +0300)
commitac2b13fdcc40d198d51c4a3a70930cc14760de67
tree5f85f22cc4f73f8ad4b48f61cc1a2d0e89d3ded3
parenta1270ec1fb07a6f3a8b05e0e825a92b29920a2ab
client/X11: do not fixup HTML data length

The data provided by local applications can be actually encoded in
UTF-16 (e.g., Firefox does this to HTML). UTF-16 allows embedded null
bytes so we should not use strlen() to fix up the data. The HTML format
synthesizer can handle trailing null bytes just fine and can detect
whether it deals with UTF-8 or UTF-16.
client/X11/xf_cliprdr.c