mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
workaround for buggy glibc memcpy (Closes: #28)
This commit is contained in:
parent
cddca4544d
commit
a055269654
1 changed files with 3 additions and 3 deletions
|
@ -554,6 +554,7 @@ void
|
|||
SND_ClearBuffer (void)
|
||||
{
|
||||
int clear;
|
||||
int i;
|
||||
|
||||
|
||||
//#ifdef _WIN32
|
||||
|
@ -576,9 +577,8 @@ SND_ClearBuffer (void)
|
|||
else
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
memset (shm->buffer, clear, shm->samples * shm->samplebits / 8);
|
||||
}
|
||||
for (i = 0; i < shm->samples * shm->samplebits / 8; i++)
|
||||
shm->buffer[i] = 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue