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