From c51fe6943bdaacac9a61b507748c30b2db9ba394 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 5 Aug 2016 20:51:50 +1000 Subject: [PATCH] Add support for SAUCE stripping in display_ansi --- bbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbs.c b/bbs.c index 6eacdaf..08d89b4 100644 --- a/bbs.c +++ b/bbs.c @@ -150,7 +150,7 @@ void s_displayansi_p(int socket, char *file) { return; } c = fgetc(fptr); - while (!feof(fptr)) { + while (!feof(fptr) && c != 0x1a) { s_putchar(socket, c); c = fgetc(fptr); } @@ -171,7 +171,7 @@ void s_displayansi(int socket, char *file) { return; } c = fgetc(fptr); - while (!feof(fptr)) { + while (!feof(fptr) && c != 0x1a) { s_putchar(socket, c); c = fgetc(fptr); }