Add support for SAUCE stripping in display_ansi

This commit is contained in:
Andrew Pamment 2016-08-05 20:51:50 +10:00
parent 8de8a9c090
commit c51fe6943b

4
bbs.c
View File

@ -150,7 +150,7 @@ void s_displayansi_p(int socket, char *file) {
return; return;
} }
c = fgetc(fptr); c = fgetc(fptr);
while (!feof(fptr)) { while (!feof(fptr) && c != 0x1a) {
s_putchar(socket, c); s_putchar(socket, c);
c = fgetc(fptr); c = fgetc(fptr);
} }
@ -171,7 +171,7 @@ void s_displayansi(int socket, char *file) {
return; return;
} }
c = fgetc(fptr); c = fgetc(fptr);
while (!feof(fptr)) { while (!feof(fptr) && c != 0x1a) {
s_putchar(socket, c); s_putchar(socket, c);
c = fgetc(fptr); c = fgetc(fptr);
} }