tskrtt

Simple libev based gopher server
git clone https://git.inz.fi/tskrtt/
Log | Files | Refs | README

commit 9df4a34aa3c9c269d3b8dd25a4d33c055484bb2f
parent 0e1f421c4b52816d6aee4944f398fb05b93a416a
Author: Santtu Lakkala <inz@inz.fi>
Date:   Mon, 17 May 2021 13:04:03 +0300

GPH interop fix

Diffstat:
Mmain.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c @@ -984,10 +984,10 @@ static char *strunesctok(char *str, char *delim, char esc) rv = state; for (w = state; *state && !strchr(delim, *state);) { - if (*state == esc) + if (*state == esc && state[1] && + (state[1] == esc || + strchr(delim, state[1]))) state++; - if (!*state) - break; *w++ = *state++; }