diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-17 14:18:14 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-17 14:18:14 +0200 |
commit | d79dc06f6c1d3f98530314b3ae0528af0055bf59 (patch) | |
tree | d65646cbb17b56f318f7c8c8c43cefcb100de86b /vdr.c | |
parent | 925780c20f09c7d0ef4a921f355a47f5e472878e (diff) | |
download | vdr-d79dc06f6c1d3f98530314b3ae0528af0055bf59.tar.gz vdr-d79dc06f6c1d3f98530314b3ae0528af0055bf59.tar.bz2 |
Fixed handling of video directory names with training slashes
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.32 2000/09/15 15:01:08 kls Exp $ + * $Id: vdr.c 1.33 2000/09/17 14:15:24 kls Exp $ */ #include <getopt.h> @@ -116,6 +116,8 @@ int main(int argc, char *argv[]) } break; case 'v': VideoDirectory = optarg; + while (optarg && *optarg && optarg[strlen(optarg) - 1] == '/') + optarg[strlen(optarg) - 1] = 0; break; default: abort(); } |