diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-12 09:46:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-12 09:46:07 -0500 |
commit | b659ffe9ac371d9a72c148cd45191b1a60dae28d (patch) | |
tree | 069789a8cce20456643f57b596b5601a0c0e5159 /src/common | |
parent | 1ad96ed9cda1573cfd9f0a388ac28bfeaf3b62aa (diff) | |
parent | 9b2b799d82e00286145d42b9c59cb4f820e4f8c7 (diff) | |
download | tor-b659ffe9ac371d9a72c148cd45191b1a60dae28d.tar.gz tor-b659ffe9ac371d9a72c148cd45191b1a60dae28d.zip |
Merge remote-tracking branch 'jryans/log-severity'
Diffstat (limited to 'src/common')
-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 3b0eb882c3..1c592c6bda 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)); |