diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 79d0fae..2239b31 100644 --- a/src/config.c +++ b/src/config.c @@ -217,6 +217,10 @@ char *strip(const char *str) if (end < start) { return NULL; } + if (str[start] == '"' && str[end] == '"' && end > start) { + start++; + end--; + } size_t len = end - start + 1; char *buf = xcalloc(len + 1, 1); strncpy(buf, str + start, len); |