diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-08-17 10:26:18 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-08-17 10:26:18 +0200 |
commit | b4a6c36215c6ecab80c3f3c3b03897816008c4ef (patch) | |
tree | 77e9d603829a8369ef566d7866132a2929abc237 | |
parent | 121f3483798628af82b9ed93ff75c43acc357d4c (diff) | |
download | vdr-b4a6c36215c6ecab80c3f3c3b03897816008c4ef.tar.gz vdr-b4a6c36215c6ecab80c3f3c3b03897816008c4ef.tar.bz2 |
Fixed handling newline characters in ci.c's CopyString()
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | ci.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 50ee175e..d56cf15e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2762,6 +2762,7 @@ Winfried Köhler <w_koehl@gmx.de> for fixing the size of cChannel::dtypes[] for adding a device hook for detecting whether a device provides EIT data for improving deleting plugins in case the plugin uses its own memory management + for reporting a bug in handling newline characters in ci.c's CopyString() Hans-Werner Hilse <hilse@web.de> for adding the command line option --userdump to enable core dumps in case VDR @@ -9513,6 +9513,7 @@ Video Disk Recorder Revision History with the main menu open. - Official release. -2020-08-16: +2020-08-17: - Updated the Italian OSD texts (thanks to Diego Pierotto). +- Fixed handling newline characters in ci.c's CopyString() (reported by Winfried Köhler). @@ -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 |