mirror of https://github.com/proxmox/mirror_qemu
pointer arith fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1086 c046a42c-6fe2-441c-8c8c-71466251a162master
parent
420557e898
commit
4971b827da
2
oss.c
2
oss.c
|
@ -403,7 +403,7 @@ void AUD_run (void)
|
|||
|
||||
left = oss.bufsize - oss.rpos;
|
||||
play = MIN (left, bytes);
|
||||
written = write (oss.fd, (void *) ((uint32_t) oss.buf + oss.rpos), play);
|
||||
written = write (oss.fd, (uint8_t *)oss.buf + oss.rpos, play);
|
||||
|
||||
if (-1 == written) {
|
||||
if (EAGAIN == errno || EINTR == errno) {
|
||||
|
|
Loading…
Reference in New Issue