diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-14 13:53:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-14 13:53:38 +0100 |
commit | 6715f4048407bb4db430f3181d29ee71a9069653 (patch) | |
tree | 1e8cbaa65e56969b62e29340d8b844987737090a /svdrp.c | |
parent | 17485ccc96a2c562ba947070acc0a77be2b7db9c (diff) | |
download | vdr-6715f4048407bb4db430f3181d29ee71a9069653.tar.gz vdr-6715f4048407bb4db430f3181d29ee71a9069653.tar.bz2 |
Added some missing 'const' keywords to avoid compilation errors with gcc 4.4 (backport from version 1.7.8)
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -10,7 +10,7 @@ * and interact with the Video Disk Recorder - or write a full featured * graphical interface that sits on top of an SVDRP connection. * - * $Id: svdrp.c 1.109.1.1 2008/05/02 14:29:16 kls Exp $ + * $Id: svdrp.c 1.109.1.2 2012/02/14 13:52:35 kls Exp $ */ #include "svdrp.h" @@ -736,7 +736,7 @@ void cSVDRP::CmdGRAB(const char *Option) char *strtok_next; FileName = strtok_r(p, delim, &strtok_next); // image type: - char *Extension = strrchr(FileName, '.'); + const char *Extension = strrchr(FileName, '.'); if (Extension) { if (strcasecmp(Extension, ".jpg") == 0 || strcasecmp(Extension, ".jpeg") == 0) Jpeg = true; @@ -795,8 +795,9 @@ void cSVDRP::CmdGRAB(const char *Option) char RealFileName[PATH_MAX]; if (FileName) { if (grabImageDir) { - cString s; - char *slash = strrchr(FileName, '/'); + cString s(FileName); + FileName = s; + const char *slash = strrchr(FileName, '/'); if (!slash) { s = AddDirectory(grabImageDir, FileName); FileName = s; |