Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: tech.diff



Stefan Huelswitt wrote:
> On 22 Jun 2002 Michael Stuermer <lists@mallorn.de> wrote:
> 
> 
>>*** menu.c.old  Fri Jun 21 23:01:56 2002
>>--- menu.c      Fri Jun 21 23:01:35 2002
>>***************
>>*** 3026,3031 ****
>>--- 3026,3032 ----
>>      // which kind of values can SNR have??? how should I map them on a visual indicator? I obtain positive and negative values...
>>      char barSS[21];
>>      int i;
>>+     if (ssX > 20) { ssX = 20; }
>>      for (i=0; i<ssX; i++) barSS[i] = '.';
>>      for (;i<21; i++) barSS[i] = ' ';
>>      barSS[21] = '\0';
> 
>              ^^^^^
> 
> 
> Error! barSS is [21], which means max. index is 20 (from 0 to
> 20)!!!

however you are working on a quite old piece of code; get the new patch. 
The new one now sets the maximum value of SS in a different way 
(dvbapi.c -> getSS)...

bye
as








Home | Main Index | Thread Index