diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-03-11 11:07:59 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-03-11 11:07:59 +0100 |
commit | bc72b7e6cd2468a9f8daea34dba524d81d60702f (patch) | |
tree | 6e2c7b4af8496a65acbb577e6e3af30b0be4e361 /timers.h | |
parent | f3ca6f2083229732d78ce6920f880fb6113e0c97 (diff) | |
download | vdr-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 'timers.h')
-rw-r--r-- | timers.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.h 2.6 2013/02/05 11:23:24 kls Exp $ + * $Id: timers.h 2.7 2013/03/11 10:35:53 kls Exp $ */ #ifndef __TIMERS_H @@ -39,7 +39,7 @@ private: int stop; int priority; int lifetime; - mutable char file[NAME_MAX * 2]; // *2 to be able to hold 'title' and 'episode', which can each be up to 255 characters long + mutable char file[NAME_MAX * 2 + 1]; // *2 to be able to hold 'title' and 'episode', which can each be up to 255 characters long char *aux; const cEvent *event; public: |