tStop parsing menu on "." - phroxy - Gopher to HTTP proxy
(HTM) git clone git://git.z3bra.org/phroxy.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 0938e922f3ff3a0e7e50a3a49ebbbeee9f26588d
(DIR) parent 6ceb8388d1a86ed1bc3a2fc6131fa4b7f8641a39
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Thu, 24 Sep 2020 13:54:00 +0200
Stop parsing menu on "."
Diffstat:
M phroxy.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/phroxy.c b/phroxy.c
t@@ -257,6 +257,8 @@ printmenu(int fd, char *data)
while((p = strsep(&data, "\n"))) {
i = *p++;
+ if (i == '.')
+ break;
f[0] = strsep(&p, "\t");
f[1] = strsep(&p, "\t");