Try to fix chat system with ssh

This commit is contained in:
Andrew Pamment 2016-08-07 15:01:35 +10:00
parent 541fd12300
commit 98c41c5ec3

5
bbs.c
View File

@ -153,8 +153,11 @@ void s_putchar(char c) {
} }
void s_putstring(char *c) { void s_putstring(char *c) {
int i;
if (sshBBS) { if (sshBBS) {
printf("%s", c); for (i=0;i<strlen(c);i++) {
putchar(c);
}
} else { } else {
write(gSocket, c, strlen(c)); write(gSocket, c, strlen(c));
} }