summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-11-01 14:05:16 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-11-01 14:05:16 +0100
commit6a70d31734598814c6a2d0c3f63a71a64af850db (patch)
treeb188c8c3e37b511d7da2a2fdff79c9c6628ae583 /recording.c
parentc054f3962002f153ae6a23da86fdbc9094c063f4 (diff)
downloadvdr-6a70d31734598814c6a2d0c3f63a71a64af850db.tar.gz
vdr-6a70d31734598814c6a2d0c3f63a71a64af850db.tar.bz2
Fixed the buffer size in cRecording::SortName()
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 e21ccae2..5a703db2 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 1.91 2004/10/31 16:22:33 kls Exp $
+ * $Id: recording.c 1.92 2004/11/01 14:04:47 kls Exp $
*/
#include "recording.h"
@@ -455,7 +455,7 @@ char *cRecording::SortName(void) const
{
if (!sortBuffer) {
char *s = StripEpisodeName(strdup(FileName() + strlen(VideoDirectory) + 1));
- int l = strxfrm(NULL, s, 0);
+ int l = strxfrm(NULL, s, 0) + 1;
sortBuffer = MALLOC(char, l);
strxfrm(sortBuffer, s, l);
free(s);