summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-27 16:03:19 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-07-27 16:03:19 -0300
commitc2756dd4cd48ca0beddae4d6a83dd5aaac5674ed (patch)
tree97d87701cf75bbcf7da0e09379e479b595daddc5 /misc.c
parent128ee4f7a0085730f39e750da21860feae2cfdd5 (diff)
misc: Actually return pointer to the first non-delimited character after
the end of the range in `get_str_delm_range()`
Diffstat (limited to 'misc.c')
-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;