fixed buffer overrun, CID 649
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27446 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b5d458a508
commit
746cac055a
@ -250,7 +250,7 @@ GameSoundBuffer::SetAttributes(gs_attribute * attributes,
|
||||
void
|
||||
GameSoundBuffer::Play(void * data, int64 frames)
|
||||
{
|
||||
float * pan = new float[1];
|
||||
float *pan = new float[2];
|
||||
pan[0] = fPanRight;
|
||||
pan[1] = fPanLeft;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user