summaryrefslogtreecommitdiff
path: root/recorder.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-09-05 11:49:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-09-05 11:49:56 +0200
commit50d268538ee714e8e3f88bba0e952c33a75d3777 (patch)
treec6e20605a33ea719c4d491a77bcb67928c785305 /recorder.c
parent3cd5294d8a337ee5cd2ec894c9fbe04ad3a7690d (diff)
downloadvdr-50d268538ee714e8e3f88bba0e952c33a75d3777.tar.gz
vdr-50d268538ee714e8e3f88bba0e952c33a75d3777.tar.bz2
Added a missing 'const' to cReceiver::Receive(), to protect the given Data from being modified
Diffstat (limited to 'recorder.c')
-rw-r--r--recorder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recorder.c b/recorder.c
index 429c9375..5915fe11 100644
--- a/recorder.c
+++ b/recorder.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recorder.c 4.1 2015/08/03 10:23:35 kls Exp $
+ * $Id: recorder.c 4.2 2015/09/05 11:43:51 kls Exp $
*/
#include "recorder.h"
@@ -106,7 +106,7 @@ void cRecorder::Activate(bool On)
Cancel(3);
}
-void cRecorder::Receive(uchar *Data, int Length)
+void cRecorder::Receive(const uchar *Data, int Length)
{
if (Running()) {
int p = ringBuffer->Put(Data, Length);