mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
xwayland,render/vulkan: fix some size assertions
This commit is contained in:
parent
fa4d8bbad7
commit
38923826c3
2 changed files with 2 additions and 2 deletions
|
|
@ -604,7 +604,7 @@ struct wlr_vk_device *vulkan_device_create(struct wlr_vk_instance *ini,
|
|||
.ppEnabledExtensionNames = extensions,
|
||||
};
|
||||
|
||||
assert(extensions_len < sizeof(extensions) / sizeof(extensions[0]));
|
||||
assert(extensions_len <= sizeof(extensions) / sizeof(extensions[0]));
|
||||
|
||||
res = vkCreateDevice(phdev, &dev_info, NULL, &dev->dev);
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ noreturn static void exec_xwayland(struct wlr_xwayland_server *server,
|
|||
|
||||
argv[i++] = NULL;
|
||||
|
||||
assert(i < sizeof(argv) / sizeof(argv[0]));
|
||||
assert(i <= sizeof(argv) / sizeof(argv[0]));
|
||||
|
||||
char wayland_socket_str[16];
|
||||
snprintf(wayland_socket_str, sizeof(wayland_socket_str), "%d", server->wl_fd[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue