summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index dc6304b..a2502e2 100644
--- a/misc.c
+++ b/misc.c
@@ -94,7 +94,7 @@ char *get_str_delm_range(char *str, const char *start_delm, const char *end_delm
rhs = (rhs != NULL) ? rhs : &dummy;
*end++ = '\0';
- *rhs = end;
+ *rhs = &end[strspn(end, end_delm)];
return start;
} else {
return NULL;