summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-07-15 10:52:16 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-07-15 10:52:16 +0200
commitf4aabad2ae12598eb8baa3e3a674f729dd0ae481 (patch)
treeba49a0663d5a0fc0eba46d52f93496add6d13b38 /recording.c
parentc13dd175051f1f11a32760a279ee77120a1014a6 (diff)
downloadvdr-f4aabad2ae12598eb8baa3e3a674f729dd0ae481.tar.gz
vdr-f4aabad2ae12598eb8baa3e3a674f729dd0ae481.tar.bz2
Fixed sorting recordings in the top level video directory
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index d13225be..ad546f5f 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.57 2012/06/09 13:57:30 kls Exp $
+ * $Id: recording.c 2.58 2012/07/15 10:47:58 kls Exp $
*/
#include "recording.h"
@@ -831,8 +831,8 @@ char *cRecording::SortName(void) const
{
char **sb = (RecordingsSortMode == rsmName) ? &sortBufferName : &sortBufferTime;
if (!*sb) {
- char *s = (RecordingsSortMode == rsmName) ? strdup(FileName() + strlen(VideoDirectory) + 1)
- : StripEpisodeName(strdup(FileName() + strlen(VideoDirectory) + 1));
+ char *s = (RecordingsSortMode == rsmName) ? strdup(FileName() + strlen(VideoDirectory))
+ : StripEpisodeName(strdup(FileName() + strlen(VideoDirectory)));
strreplace(s, '/', 'a'); // some locales ignore '/' when sorting
int l = strxfrm(NULL, s, 0) + 1;
*sb = MALLOC(char, l);