mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -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
|
|
@ -84,7 +84,7 @@ int main(int argc, char *argv[])
|
|||
GSource *source;
|
||||
struct screenshooter *s;
|
||||
|
||||
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