pass through except for the first '='

if "foo=ba=r" is found in ini files, it should be parsed like this.
      key : foo
    value : ba=r
This commit is contained in:
Koichiro IWAO 2017-06-22 14:41:33 +09:00 committed by metalefty
parent d57e02626d
commit eae5cdf1fd
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ file_split_name_value(char *text, char *name, char *value)
for (i = 0; i < len; i++)
{
if (text[i] == '=')
if (text[i] == '=' && !on_to)
{
on_to = 1;
}