summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-11-20 13:49:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2020-11-20 13:49:58 +0100
commit272231467a680d8f0a2e562f811c71fc9ea1ef1c (patch)
tree082bf5573250333d32c72ecfa0ba66ced0d58f56
parent6cb818c7ad20c99054f0c2d292342de99d33c2ca (diff)
downloadvdr-272231467a680d8f0a2e562f811c71fc9ea1ef1c.tar.gz
vdr-272231467a680d8f0a2e562f811c71fc9ea1ef1c.tar.bz2
Fixed parsing the '-l' command line option
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY3
-rw-r--r--vdr.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 35b050f0..3138239e 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -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
diff --git a/HISTORY b/HISTORY
index 8daf803e..6d98bc2b 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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).
diff --git a/vdr.c b/vdr.c
index 2ff5cfb4..709e2f85 100644
--- a/vdr.c
+++ b/vdr.c
@@ -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) {