summaryrefslogtreecommitdiffstats
path: root/src/schedule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/schedule.cpp')
-rw-r--r--src/schedule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/schedule.cpp b/src/schedule.cpp
index 5beed95..580d16f 100644
--- a/src/schedule.cpp
+++ b/src/schedule.cpp
@@ -393,7 +393,7 @@ TQString Schedule::createScanScript()
ts << "fi" << "\n";
file.close();
- chmod((const char *)file.name(), S_IWUSR | S_IRUSR | S_IEXEC );
+ chmod(file.name().ascii(), S_IWUSR | S_IRUSR | S_IEXEC );
return file.name();
}else
return TQString("Error");
@@ -459,7 +459,7 @@ TQString Schedule::createStartupScript()
ts << "Terminal=0" << "\n";
file.close();
- chmod((const char *)file.name(), S_IWUSR | S_IRUSR | S_IEXEC );
+ chmod(file.name().ascii(), S_IWUSR | S_IRUSR | S_IEXEC );
return file.name();
}else
return TQString("Error");