diff options
Diffstat (limited to 'src/freshklam.cpp')
-rw-r--r-- | src/freshklam.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freshklam.cpp b/src/freshklam.cpp index 62e4791..18fc5cd 100644 --- a/src/freshklam.cpp +++ b/src/freshklam.cpp @@ -754,7 +754,7 @@ TQString Freshklam::getCurrentDBDir(){ if (dbdir != dir_combo->url()){ /* load all available databases from default directory */ - ret = cl_load((const char *)dir_combo->url(), engine, &no, CL_DB_STDOPT); + ret = cl_load(dir_combo->url().ascii(), engine, &no, CL_DB_STDOPT); //ret = cl_loaddbdir((const char *)dir_combo->url(), &root, &no); ////kdDebug() << "ret " << ret << endl; if (no == 0){ @@ -791,7 +791,7 @@ void Freshklam::createDBDir(){ if (!klamavqdir.exists() && !klamavqdir.mkdir(path)) ok = false; else - chmod((const char *)path,0700); + chmod(path.ascii(),0700); } if (ok){ |