summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-05-06 11:30:03 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2019-05-06 11:30:03 +0200
commit820c22775cff1645cb698b945bc384a01b4bbc85 (patch)
tree829b94e3cc673962c286e630dec240cde3f3b251
parent16f18cbce84b7160c96b33b618dd00ddd8791246 (diff)
downloadvdr-820c22775cff1645cb698b945bc384a01b4bbc85.tar.gz
vdr-820c22775cff1645cb698b945bc384a01b4bbc85.tar.bz2
Fixed a compiler warning in ExchangeChars()
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY3
-rw-r--r--recording.c4
3 files changed, 5 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 8e859412..e08da1a1 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3581,6 +3581,7 @@ Helmut Binder <cco@aon.at>
over an SI::ExtensionDescriptor
for fixing mapping SIDs in MTD
for fixing updating the checksum in the CA table after mapping EMM PIDs for MTD
+ for fixing a compiler warning in ExchangeChars()
Ulrich Eckhardt <uli@uli-eckhardt.de>
for reporting a problem with shutdown after user inactivity in case a plugin is
diff --git a/HISTORY b/HISTORY
index ef14e620..de875b27 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9348,7 +9348,7 @@ Video Disk Recorder Revision History
Senzel).
- Official release.
-2019-05-05: Version 2.4.1
+2019-05-06: Version 2.4.1
- Fixed handling the tfRecording flag in the SVDRP commands MODT and UPDT (reported
by Johann Friedrichs).
@@ -9397,3 +9397,4 @@ Video Disk Recorder Revision History
- Fixed mapping SIDs in MTD (thanks to Helmut Binder).
- Fixed updating the checksum in the CA table after mapping EMM PIDs for MTD (thanks to
Helmut Binder).
+- Fixed a compiler warning in ExchangeChars() (thanks to Helmut Binder).
diff --git a/recording.c b/recording.c
index 4742921d..b6edb821 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 4.24 2019/03/19 15:56:58 kls Exp $
+ * $Id: recording.c 4.25 2019/05/06 11:26:06 kls Exp $
*/
#include "recording.h"
@@ -610,7 +610,7 @@ char *ExchangeChars(char *s, bool ToFileSystem)
char buf[4];
sprintf(buf, "#%02X", (unsigned char)*p);
memmove(p + 2, p, strlen(p) + 1);
- strncpy(p, buf, 3);
+ memcpy(p, buf, 3);
p += 2;
}
else