diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-27 16:03:19 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-27 16:03:19 -0300 |
commit | c2756dd4cd48ca0beddae4d6a83dd5aaac5674ed (patch) | |
tree | 97d87701cf75bbcf7da0e09379e479b595daddc5 /misc.c | |
parent | 128ee4f7a0085730f39e750da21860feae2cfdd5 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |