forked from enlightenment/enlightenment
better fix for mixer buffer overflow, copy to epulse
SVN revision: 80919
This commit is contained in:
parent
cc694477f6
commit
6c68615ca3
|
@ -154,7 +154,7 @@ msg_send_creds(Pulse *conn, Pulse_Tag *tag)
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
INF("trying to send 20 byte auth header");
|
INF("trying to send 20 byte auth header");
|
||||||
r = send(ecore_main_fd_handler_fd_get(conn->fdh), &tag->header[tag->pos], PA_PSTREAM_DESCRIPTOR_MAX - tag->pos, MSG_NOSIGNAL);
|
r = send(ecore_main_fd_handler_fd_get(conn->fdh), &tag->header[tag->pos], sizeof(tag->header) - (tag->pos * sizeof(tag->header[0])), MSG_NOSIGNAL);
|
||||||
INF("%i bytes sent!", r);
|
INF("%i bytes sent!", r);
|
||||||
if ((!r) || (r == (int)sizeof(tag->header))) tag->auth = EINA_TRUE;
|
if ((!r) || (r == (int)sizeof(tag->header))) tag->auth = EINA_TRUE;
|
||||||
else if (r < 0)
|
else if (r < 0)
|
||||||
|
|
Loading…
Reference in New Issue