aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/custom.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/custom.c b/src/custom.c
index 747d4d8..6385593 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -393,8 +393,13 @@ custom_load_conf (struct conf *conf)
if (*e_conf == '\0')
continue;
- name = strtok (e_conf, "=");
- val = strtok (NULL, "\0");
+ name = e_conf;
+ val = strchr (e_conf, '=');
+ if (val)
+ {
+ *val = '\0';
+ val++;
+ }
var = CUSTOM_CONF_INVALID;
for (i = 0; i < sizeof (conf_varmap) / sizeof (struct conf_varname); i++)