From eae5cdf1fd9e18b4170071530a057edf0ae70329 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Thu, 22 Jun 2017 14:41:33 +0900 Subject: [PATCH] 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 --- common/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/file.c b/common/file.c index 16b8deee..811e71fa 100644 --- a/common/file.c +++ b/common/file.c @@ -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; }