diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | undelete.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -43,5 +43,6 @@ VDR Plugin 'undelete' Revision History - corrected the HISTORY header - edit the README file +- merge patch for gcc-4.4 from Holger Schvestka <hotzenplotz5@gmx.de> @@ -934,10 +934,10 @@ cString cPluginUndelete::SVDRPCommand(const char *Command, const char *Option, i if (verbose.u) isyslog("%s: undelete recording (%s)", plugin_name, recording->FileName()); cString NewName = recording->FileName(); - char *ext = strrchr(NewName, '.'); + const char *ext = strrchr(NewName, '.'); if (!strcmp(ext, DELEXT)) { - strncpy(ext, RECEXT, strlen(ext)); + strncpy((char *)ext, RECEXT, strlen(ext)); if (!access(NewName, F_OK)) { if (verbose.u) |