Fixed parsing the '-l' command line option

This commit is contained in:
Klaus Schmidinger 2020-11-20 13:49:58 +01:00
parent 6cb818c7ad
commit 272231467a
3 changed files with 5 additions and 2 deletions

View File

@ -2184,6 +2184,7 @@ Hardy Flor <HFlor@web.de>
Harald Milz <hm@seneca.muc.de>
for his CUTR patch, which was used as a base to implement the SVDRP command EDIT
for reporting a bug in parsing the '-l' command line option
Marko Mäkelä <marko.makela@hut.fi>
for making repeat keys be ignored when waiting for a keypress to cancel an operation

View File

@ -9536,7 +9536,7 @@ Video Disk Recorder Revision History
cDvbTuner::GetSignalStats() to avoid problems with drivers that don't do this
(thanks to Helmut Binder).
2020-11-16:
2020-11-20:
- Fixed multiple recording entries in case a recording is started during the initial
reading of the video directory (reported by Claus Muus).
@ -9544,3 +9544,4 @@ Video Disk Recorder Revision History
(reported by Christoph Haubrich).
- Fixed a crash in case an error occurs when setting a remote timer.
- Fixed allocating memory for cImage (reported by Christoph Haubrich).
- Fixed parsing the '-l' command line option (reported by Harald Milz).

3
vdr.c
View File

@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
* $Id: vdr.c 4.33 2020/05/18 16:47:29 kls Exp $
* $Id: vdr.c 4.34 2020/11/20 13:49:58 kls Exp $
*/
#include <getopt.h>
@ -422,6 +422,7 @@ int main(int argc, char *argv[])
SysLogLevel = l;
if (!p)
break;
*p = '.';
if (isnumber(p + 1)) {
int l = atoi(p + 1);
if (0 <= l && l <= 7) {