diff options
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/log.c b/src/common/log.c index d031364c63..5f7151bf0c 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -1319,10 +1319,8 @@ parse_log_severity_config(const char **cfg_ptr, if (got_an_unqualified_range > 1) return -1; - space = strchr(cfg, ' '); + space = find_whitespace(cfg); dash = strchr(cfg, '-'); - if (!space) - space = strchr(cfg, '\0'); if (dash && dash < space) { sev_lo = tor_strndup(cfg, dash-cfg); sev_hi = tor_strndup(dash+1, space-(dash+1)); |