Skip to content

Commit 6fe883d

Browse files
committed
Use written_bytes
1 parent 30b8dbb commit 6fe883d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtio-snd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ static void __virtio_snd_frame_dequeue(short *out,
760760
}
761761
fprintf(stderr, "*** written %" PRIu32 " out n %" PRIu32 "\n",
762762
written_bytes, n);
763-
memcpy(out, props->immediate, n);
763+
memcpy(out, props->immediate, written_bytes);
764764

765765
props->ring.buf_ev_notity--;
766766
pthread_cond_signal(&props->ring.writable);

0 commit comments

Comments
 (0)