[PATCH] Solaris xf86OSRingBell() off-by-one error in filling iov[] array

2010-02-15 Thread Alan Coopersmith
When generating sound buffers for /dev/audio bells, insert waveform for beep *or* silence, but not both, so we don't write one entry past the end of the iov buffer when the final bit of soundwave ends up in the final entry allocated in the iov array. Fixes OpenSolaris bug 6894890:

Re: [PATCH] Solaris xf86OSRingBell() off-by-one error in filling iov[] array

2010-02-15 Thread Adam Jackson
On Mon, 2010-02-15 at 13:42 -0800, Alan Coopersmith wrote: When generating sound buffers for /dev/audio bells, insert waveform for beep *or* silence, but not both, so we don't write one entry past the end of the iov buffer when the final bit of soundwave ends up in the final entry allocated in

[PATCH] Solaris xf86OSRingBell() off-by-one error in filling iov[] array

2010-02-15 Thread Alan Coopersmith
When generating sound buffers for /dev/audio bells, insert waveform for beep *or* silence, but not both, so we don't write one entry past the end of the iov buffer when the final bit of soundwave ends up in the final entry allocated in the iov array. Fixes OpenSolaris bug 6894890: