From 1728fccfe27ab7c9a789fbfbe0ecae5d3d8920dd Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 2 Oct 2005 15:06:07 +0200 Subject: Skipping blanks at the beginning of CAM menu strings --- ci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci.c b/ci.c index f17a04b5..1e8b6a2a 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 1.32 2005/10/02 14:10:51 kls Exp $ + * $Id: ci.c 1.33 2005/10/02 15:06:07 kls Exp $ */ #include "ci.h" @@ -94,7 +94,7 @@ static char *CopyString(int Length, const uint8_t *Data) { // Some CAMs send funny characters at the beginning of strings. // Let's just skip them: - while (Length > 0 && (*Data == 0x05 || *Data == 0x96 || *Data == 0x97)) { + while (Length > 0 && (*Data == ' ' || *Data == 0x05 || *Data == 0x96 || *Data == 0x97)) { Length--; Data++; } -- cgit v1.2.3