diff options
Diffstat (limited to 'setupeepg.h')
-rw-r--r-- | setupeepg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/setupeepg.h b/setupeepg.h index ffd9eb8..4c30ede 100644 --- a/setupeepg.h +++ b/setupeepg.h @@ -7,6 +7,7 @@ #ifndef SETUPEEPG_H_ #define SETUPEEPG_H_ +#include <string.h> class cSetupEEPG { @@ -31,7 +32,10 @@ public: void setConfDir(char* confDir) { - ConfDir = confDir; + if (ConfDir) + delete ConfDir; + ConfDir = new char[strlen(confDir)+1]; + strcpy(ConfDir, confDir); } private: |