mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +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)
|
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
|
||||||
|
|
Loading…
Reference in a new issue