summaryrefslogtreecommitdiffstats
path: root/.tag
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-09-18 08:56:57 +0200
committerJohan Helsing <johan.helsing@qt.io>2019-09-25 10:54:58 +0000
commit1ed0782e93dafb0a3d5ef3a02c9c3999825817ee (patch)
tree286cf61e3e6bc3140a00ca7944a5430d09bfacbf /.tag
parent8f6c41e49e320de9e0921801ab87a45f6e6f9fa9 (diff)
Client: Don't crash with long window titles using UTF-16 characters
Previously, we set the max length in QString character length, which means UTF-16 characters (of potentially three bytes) counts as one character. The max limit of libwayland, however, is in bytes (and the string itself is converted to UTF-8). Fix it by dividing the character limit by three because in the worst case each UTF-16 character will use three bytes when UTF-8 encoded. Fixes: QTBUG-78478 Change-Id: Idf4721894e0fe6f3cd92bdc6ada7b0ea4199ea63 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to '.tag')
0 files changed, 0 insertions, 0 deletions