summaryrefslogtreecommitdiff
path: root/lib/libcfg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcfg')
-rw-r--r--lib/libcfg/rdline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libcfg/rdline.c b/lib/libcfg/rdline.c
index 16ca5cf..3c3fcb3 100644
--- a/lib/libcfg/rdline.c
+++ b/lib/libcfg/rdline.c
@@ -125,6 +125,9 @@ static void substitute(rdline_t *t, char *dst, char *src)
src += 2;
while (*dst != '\0')
++dst;
+ } else if (src[0] == '%' && src[1] == '%') {
+ *(dst++) = '%';
+ src += 2;
} else {
if (*src == '"')
string = !string;