diff options
Diffstat (limited to 'src/connection.c')
| -rw-r--r-- | src/connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c index 5c3d187..7fe35b5 100644 --- a/src/connection.c +++ b/src/connection.c @@ -186,6 +186,7 @@ close_fds(struct wl_buffer *buffer, int max) count = size / sizeof fds[0]; if (max > 0 && max < count) count = max; + size = count * sizeof fds[0]; for (i = 0; i < count; i++) close(fds[i]); buffer->tail += size; |
