Merge branch 'typo' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
49a07651b9
2
glfw/wl_window.c
vendored
2
glfw/wl_window.c
vendored
@ -959,7 +959,7 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
|
|||||||
free(window->wl.title);
|
free(window->wl.title);
|
||||||
window->wl.title = _glfw_strdup(title);
|
window->wl.title = _glfw_strdup(title);
|
||||||
// Wayland cannot handle requests larger than ~8200 bytes. Sending
|
// Wayland cannot handle requests larger than ~8200 bytes. Sending
|
||||||
// on causes an abort(). Since titles this large are meaningless anyway
|
// one causes an abort(). Since titles this large are meaningless anyway
|
||||||
// ensure they do not happen. One should really truncate ensuring valid UTF-8
|
// ensure they do not happen. One should really truncate ensuring valid UTF-8
|
||||||
// but I cant be bothered.
|
// but I cant be bothered.
|
||||||
if (title && strnlen(title, 2048) >= 2048) window->wl.title[2048] = 0;
|
if (title && strnlen(title, 2048) >= 2048) window->wl.title[2048] = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user