projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
29b611b
)
Ahem. This time high-half characters really _do_ work in username
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 9 May 2000 08:56:30 +0000
(08:56 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 9 May 2000 08:56:30 +0000
(08:56 +0000)
and password...
git-svn-id: svn://svn.tartarus.org/sgt/putty@468
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
9ab5780
..
a91190e
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-500,7
+500,8
@@
static void ssh_protocol(unsigned char *in, int inlen, int ispkt) {
exit(0);
break;
default:
- if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40) {
+ if (((c >= ' ' && c <= '~') ||
+ ((unsigned char)c >= 160)) && pos < 40) {
username[pos++] = c;
c_write(&c, 1);
}
@@
-584,7
+585,8
@@
static void ssh_protocol(unsigned char *in, int inlen, int ispkt) {
exit(0);
break;
default:
- if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40)
+ if (((c >= ' ' && c <= '~') ||
+ ((unsigned char)c >= 160)) && pos < 40)
password[pos++] = c;
break;
}