phroxy

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/phroxy.git
Log | Files | Refs | LICENSE

commit b7b6e2df588288393b4b643fe6d8c860085195ac
parent a44d2079ba256f02068daa7b153d9c87eb2e8160
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon, 14 Sep 2020 13:57:10 +0200

Stop parsing when a "." is found (meaning end-of-transmission)

Diffstat:
Mphroxy.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/phroxy.c b/phroxy.c @@ -221,7 +221,12 @@ htmlize(char *data, size_t *htmlsize) p = data; while((p = strsep(&data, "\n"))) { + /* end-of-transmission */ + if (!strncmp(p, ".", 2)) + break; + i = *p++; + f[0] = strsep(&p, "\t"); f[1] = strsep(&p, "\t"); f[2] = strsep(&p, "\t");