mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
Another valgrind-caught error. This one has apparently been there
since the Dawn O' Time, and consisted of me putting the two halves of a short-circuiting bounds check the wrong way round: instead of `p_in_range && *p', I had `*p && p_in_range'. Oops. valgrind rocks. [originally from svn r2174]
This commit is contained in:
parent
63f793b965
commit
6c09add500
2
telnet.c
2
telnet.c
@ -742,7 +742,7 @@ static int telnet_send(void *handle, char *buf, int len)
|
|||||||
while (p < buf + len) {
|
while (p < buf + len) {
|
||||||
char *q = p;
|
char *q = p;
|
||||||
|
|
||||||
while (iswritable((unsigned char) *p) && p < buf + len)
|
while (p < buf + len && iswritable((unsigned char) *p))
|
||||||
p++;
|
p++;
|
||||||
telnet->bufsize = sk_write(telnet->s, q, p - q);
|
telnet->bufsize = sk_write(telnet->s, q, p - q);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user