diff options
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -72,9 +72,9 @@ char *get_line(char **str) { char *find_delm(char *str, const char *delm, int skip_delm) { if (!is_empty(str)) { char *s; - for (s = str; *s != '\0'; s += strcspn(s, delm)) { - if (*s++ == '\\') { - s += strspn(s, delm); + for (s = &str[strcspn(str, delm)]; *s != '\0'; s += strcspn(s, delm)) { + if (*s == '\\') { + s += strspn(++s, delm); continue; } else { break; |