diff -urN xmms2-0.6DrMattDestruction/src/lib/xmmsipc/socket_unix.c xmms2-0.6DrMattDestruction.new/src/lib/xmmsipc/socket_unix.c
old
|
new
|
|
82 | 82 | } |
83 | 83 | |
84 | 84 | saddr.sun_family = AF_UNIX; |
85 | | snprintf (saddr.sun_path, 108, "/%s", url->path); |
| 85 | snprintf (saddr.sun_path, sizeof(saddr.sun_path), "/%s", url->path); |
86 | 86 | |
87 | 87 | if (connect (fd, (struct sockaddr *) &saddr, sizeof (saddr)) == -1) { |
88 | 88 | close (fd); |
… |
… |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | saddr.sun_family = AF_UNIX; |
176 | | snprintf (saddr.sun_path, 108, "/%s", url->path); |
| 176 | snprintf (saddr.sun_path, sizeof(saddr.sun_path), "/%s", url->path); |
177 | 177 | |
178 | 178 | if (access (saddr.sun_path, F_OK) == 0) { |
179 | 179 | if (connect (fd, (struct sockaddr *) &saddr, sizeof (saddr)) != -1) { |