summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-08-17 10:26:18 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-08-17 10:26:18 +0200
commitb4a6c36215c6ecab80c3f3c3b03897816008c4ef (patch)
tree77e9d603829a8369ef566d7866132a2929abc237 /ci.c
parent121f3483798628af82b9ed93ff75c43acc357d4c (diff)
downloadvdr-b4a6c36215c6ecab80c3f3c3b03897816008c4ef.tar.gz
vdr-b4a6c36215c6ecab80c3f3c3b03897816008c4ef.tar.bz2
Fixed handling newline characters in ci.c's CopyString()
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci.c b/ci.c
index ef9675f3..ed3470b1 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 4.31 2020/07/10 09:06:21 kls Exp $
+ * $Id: ci.c 4.32 2020/08/17 10:26:18 kls Exp $
*/
#include "ci.h"
@@ -81,7 +81,7 @@ static char *CopyString(int Length, const uint8_t *Data)
char *s = MALLOC(char, Length + 1);
char *p = s;
while (Length > 0) {
- char c = *Data;
+ int c = *Data;
if (isprint(c)) // some CAMs send funny characters in their strings, let's just skip them
*p++ = c;
else if (c == 0x8A) // the character 0x8A is used as newline, so let's put a real '\n' in there