diff options
-rw-r--r-- | channels/chan_skinny.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index d8c3d6192..fee2ee07e 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -7595,7 +7595,7 @@ static void *skinny_session(void *data) bytesread = 0; while (1) { - if ((res = read(s->fd, &req->data+bytesread, dlen-bytesread)) < 0) { + if ((res = read(s->fd, ((char*)&req->data)+bytesread, dlen-bytesread)) < 0) { ast_log(LOG_WARNING, "Data read() returned error: %s\n", strerror(errno)); break; } |