Try again to fix chat system with ssh

This commit is contained in:
Andrew Pamment 2016-08-07 15:06:29 +10:00
parent d03ed16507
commit 005bb33767

6
bbs.c
View File

@ -153,11 +153,8 @@ void s_putchar(char c) {
}
void s_putstring(char *c) {
int i;
if (sshBBS) {
for (i=0;i<strlen(c);i++) {
putchar(c[i]);
}
printf("%s", c);
} else {
write(gSocket, c, strlen(c));
}
@ -713,5 +710,6 @@ void runbbs(int socket, char *ip) {
}
void runbbs_ssh(char *ip) {
setbuf(stdout, NULL);
runbbs_real(-1, ip, 1);
}