diff options
author | Mavridis Philippe <[email protected]> | 2021-01-25 15:34:56 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-01-25 15:34:56 +0200 |
commit | c06676f232466dcc7917299b75f5296ff830b01c (patch) | |
tree | aacf02557175b245b1b68bbc8accda67cda586b3 /src/freshklam.cpp | |
parent | 719d2f66dbdf7a70b084529acc888269a1743c1b (diff) | |
download | klamav-c06676f232466dcc7917299b75f5296ff830b01c.tar.gz klamav-c06676f232466dcc7917299b75f5296ff830b01c.zip |
Fixed some TQString->const char * casts.
Signed-off-by: Mavridis Philippe <[email protected]>
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){ |