workaround for buggy glibc memcpy (Closes: #28)

This commit is contained in:
Bill Currie 2002-10-11 03:29:39 +00:00
parent cddca4544d
commit a055269654

View file

@ -554,6 +554,7 @@ void
SND_ClearBuffer (void) SND_ClearBuffer (void)
{ {
int clear; int clear;
int i;
//#ifdef _WIN32 //#ifdef _WIN32
@ -576,9 +577,8 @@ SND_ClearBuffer (void)
else else
#endif #endif
#endif #endif
{ for (i = 0; i < shm->samples * shm->samplebits / 8; i++)
memset (shm->buffer, clear, shm->samples * shm->samplebits / 8); shm->buffer[i] = 0;
}
} }
void void