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:
Stefano Ceccherini 2008-09-12 10:10:13 +00:00
parent b5d458a508
commit 746cac055a

View File

@ -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;