summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-03-11 11:07:59 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-03-11 11:07:59 +0100
commitbc72b7e6cd2468a9f8daea34dba524d81d60702f (patch)
tree6e2c7b4af8496a65acbb577e6e3af30b0be4e361 /recording.c
parentf3ca6f2083229732d78ce6920f880fb6113e0c97 (diff)
downloadvdr-bc72b7e6cd2468a9f8daea34dba524d81d60702f.tar.gz
vdr-bc72b7e6cd2468a9f8daea34dba524d81d60702f.tar.bz2
Fixed using PATH_MAX and NAME_MAX (+/-1 because the first one includes the terminating 0, while the latter doesn't)
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 032175dd..f43ce52e 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.90 2013/03/04 14:02:40 kls Exp $
+ * $Id: recording.c 2.91 2013/03/11 10:34:41 kls Exp $
*/
#include "recording.h"
@@ -66,7 +66,7 @@
#define MAX_LINK_LEVEL 6
-int DirectoryPathMax = PATH_MAX;
+int DirectoryPathMax = PATH_MAX - 1;
int DirectoryNameMax = NAME_MAX;
bool DirectoryEncoding = false;
int InstanceId = 0;