mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-14 06:59:46 -05:00
Fix API to always include socket name length.
This commit is contained in:
parent
cb70316105
commit
dc0f355f0a
9 changed files with 22 additions and 21 deletions
2
flower.c
2
flower.c
|
|
@ -149,7 +149,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
loop = g_main_loop_new(NULL, FALSE);
|
||||
|
||||
display = wl_display_create(socket_name);
|
||||
display = wl_display_create(socket_name, sizeof socket_name);
|
||||
if (display == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue