diff --git a/src/ChatManager.cpp b/src/ChatManager.cpp index c2b6941..6bd104e 100644 --- a/src/ChatManager.cpp +++ b/src/ChatManager.cpp @@ -936,7 +936,7 @@ std::string ChatManager::sanitizeText(std::string text, bool allowNewlines) { if (!allowNewlines && c == '\n') continue; - if (c >= ' ' && c <= '~' || c == '\n') + if ((c >= ' ' && c <= '~') || c == '\n') buf[i++] = c; } buf[i] = 0; diff --git a/src/Database.cpp b/src/Database.cpp index 5d1f58c..591aeb1 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -183,7 +183,7 @@ void Database::createTables() { std::lock_guard lock(dbCrit); char* errMsg = 0; - char* sql; + const char* sql; sql = R"( CREATE TABLE IF NOT EXISTS "Accounts" (