mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed the buffer size in cRecording::SortName()
This commit is contained in:
parent
c054f39620
commit
6a70d31734
2
HISTORY
2
HISTORY
@ -3112,4 +3112,4 @@ Video Disk Recorder Revision History
|
|||||||
- The "Channels" menu can now be sorted "by number" (default), "by name" and
|
- The "Channels" menu can now be sorted "by number" (default), "by name" and
|
||||||
"by provider". While in the "Channels" menu, pressing the '0' key switches
|
"by provider". While in the "Channels" menu, pressing the '0' key switches
|
||||||
through these modes.
|
through these modes.
|
||||||
|
- Fixed the buffer size in cRecording::SortName().
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "recording.h"
|
||||||
@ -455,7 +455,7 @@ char *cRecording::SortName(void) const
|
|||||||
{
|
{
|
||||||
if (!sortBuffer) {
|
if (!sortBuffer) {
|
||||||
char *s = StripEpisodeName(strdup(FileName() + strlen(VideoDirectory) + 1));
|
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);
|
sortBuffer = MALLOC(char, l);
|
||||||
strxfrm(sortBuffer, s, l);
|
strxfrm(sortBuffer, s, l);
|
||||||
free(s);
|
free(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user