Fix API to always include socket name length.

This commit is contained in:
Kristian Høgsberg 2008-12-07 15:22:22 -05:00
parent cb70316105
commit dc0f355f0a
9 changed files with 22 additions and 21 deletions

View file

@ -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;