From: ben Date: Tue, 7 Jan 2003 23:05:12 +0000 (+0000) Subject: Use '\012' as the end of the SSH banner line, not '\n'. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/c4ffc4d0ab7100cafa56d893580e8d747a41a5ad Use '\012' as the end of the SSH banner line, not '\n'. Mac compilers default to making '\n' == '\015'. git-svn-id: svn://svn.tartarus.org/sgt/putty@2493 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index eea76c07..24617b1c 100644 --- a/ssh.c +++ b/ssh.c @@ -1844,7 +1844,7 @@ static int do_ssh_init(Ssh ssh, unsigned char c) s->i = -1; } else if (s->i < sizeof(s->version) - 1) s->version[s->i++] = c; - } else if (c == '\n') + } else if (c == '\012') break; } @@ -1894,7 +1894,7 @@ static int do_ssh_init(Ssh ssh, unsigned char c) sha_string(&ssh->exhashbase, s->vstring, strcspn(s->vstring, "\r\n")); sprintf(vlog, "We claim version: %s", verstring); logevent(vlog); - strcat(verstring, "\n"); + strcat(verstring, "\012"); logevent("Using SSH protocol version 2"); sk_write(ssh->s, verstring, strlen(verstring)); ssh->protocol = ssh2_protocol; @@ -1910,7 +1910,7 @@ static int do_ssh_init(Ssh ssh, unsigned char c) sshver); sprintf(vlog, "We claim version: %s", verstring); logevent(vlog); - strcat(verstring, "\n"); + strcat(verstring, "\012"); logevent("Using SSH protocol version 1"); sk_write(ssh->s, verstring, strlen(verstring));