From db75e2ed09be6b31c1bcc0af663fc3f2998a3b77 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 19 Apr 2016 17:27:00 +0100 Subject: [PATCH] Convert the D-Star module to upper case. --- Conf.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Conf.cpp b/Conf.cpp index 2e23a07..7bb03c9 100644 --- a/Conf.cpp +++ b/Conf.cpp @@ -238,9 +238,12 @@ bool CConf::read() } else if (section == SECTION_DSTAR) { if (::strcmp(key, "Enable") == 0) m_dstarEnabled = ::atoi(value) == 1; - else if (::strcmp(key, "Module") == 0) + else if (::strcmp(key, "Module") == 0) { + // Convert the module to upper case + for (unsigned int i = 0U; value[i] != 0; i++) + value[i] = ::toupper(value[i]); m_dstarModule = value; - else if (::strcmp(key, "SelfOnly") == 0) + } else if (::strcmp(key, "SelfOnly") == 0) m_dstarSelfOnly = ::atoi(value) == 1; else if (::strcmp(key, "BlackList") == 0) { char* p = ::strtok(value, ",\r\n");