tStop parsing when a "." is found (meaning end-of-transmission) - phroxy - Gopher to HTTP proxy
 (HTM) git clone git://git.z3bra.org/phroxy.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit b7b6e2df588288393b4b643fe6d8c860085195ac
 (DIR) parent a44d2079ba256f02068daa7b153d9c87eb2e8160
 (HTM) 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:
         M phroxy.c                            |       5 +++++
       
       1 file changed, 5 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/phroxy.c b/phroxy.c
       t@@ -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");