Unverified Commit ec30f279 authored by Giuseppe Carboni's avatar Giuseppe Carboni Committed by GitHub
Browse files

Fix #785, check schedule name, not whole path name (#789)

This is meant to fix the issue on the master branch, not on the centos_7_compatibility branch since it has been already been fixed there.
parent 0723d8dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ CBaseSchedule::~CBaseSchedule()
bool CBaseSchedule::readAll(bool check)
{
	IRA::CString err;
	if (m_fileName.GetLength()>MAX_SCHED_NAME_LEN) {
	if (m_baseName.GetLength()>MAX_SCHED_NAME_LEN) {
		m_lastError.Format("Schedule name exceeds the maximum allowed characters of %d",MAX_SCHED_NAME_LEN);
		return false;
	}