Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumblekit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven-xu94 <steven.xu13@gmail.com>2016-02-24 23:29:08 +0300
committerSteven-xu94 <steven.xu13@gmail.com>2016-02-24 23:29:08 +0300
commitde9cd025f936b56f9e1c9768cc2d777185b0d7f2 (patch)
tree0b40759a5d93a3c84fc98dc225befade06f91dea
parentabc36e730251139104889203826a192797230692 (diff)
Fixed memset not setting entire array 0
-rw-r--r--src/MKAudioOutput.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MKAudioOutput.m b/src/MKAudioOutput.m
index 5b684d9..44e5458 100644
--- a/src/MKAudioOutput.m
+++ b/src/MKAudioOutput.m
@@ -209,7 +209,7 @@
}
}
} else {
- memset((short *)frames, 0, nsamp * _numChannels);
+ memset((short *)frames, 0, nsamp * _numChannels * sizeof(short));
}
[_outputLock unlock];