[Scummvm-git-logs] scummvm master -> 8469b8749c9e710992d22bdfa07e6afcff9cfd4d
bluegr
bluegr at gmail.com
Tue Apr 9 20:02:33 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8469b8749c COMMON: fixed reading ini files with section containing more than one word
Commit: 8469b8749c9e710992d22bdfa07e6afcff9cfd4d
https://github.com/scummvm/scummvm/commit/8469b8749c9e710992d22bdfa07e6afcff9cfd4d
Author: Andrei Prykhodko (whiterandrek at gmail.com)
Date: 2019-04-09T21:02:29+03:00
Commit Message:
COMMON: fixed reading ini files with section containing more than one word
Changed paths:
common/ini-file.cpp
diff --git a/common/ini-file.cpp b/common/ini-file.cpp
index 7e5a098..1bf0a0e 100644
--- a/common/ini-file.cpp
+++ b/common/ini-file.cpp
@@ -30,7 +30,7 @@ namespace Common {
bool INIFile::isValidName(const String &name) {
const char *p = name.c_str();
- while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.'))
+ while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.' || *p == ' '))
p++;
return *p == 0;
}
@@ -108,7 +108,7 @@ bool INIFile::loadFromStream(SeekableReadStream &stream) {
// is, verify that it only consists of alphanumerics,
// periods, dashes and underscores). Mohawk Living Books games
// can have periods in their section names.
- while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.'))
+ while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.' || *p == ' '))
p++;
if (*p == '\0')
More information about the Scummvm-git-logs
mailing list