diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: packet.c,v 1.64 2001/05/31 10:30:16 markus Exp $"); | 40 | RCSID("$OpenBSD: packet.c,v 1.65 2001/06/07 20:23:04 markus Exp $"); |
41 | 41 | ||
42 | #include "xmalloc.h" | 42 | #include "xmalloc.h" |
43 | #include "buffer.h" | 43 | #include "buffer.h" |
@@ -333,7 +333,7 @@ packet_put_string(const char *buf, u_int len) | |||
333 | void | 333 | void |
334 | packet_put_cstring(const char *str) | 334 | packet_put_cstring(const char *str) |
335 | { | 335 | { |
336 | buffer_put_string(&outgoing_packet, str, strlen(str)); | 336 | buffer_put_cstring(&outgoing_packet, str); |
337 | } | 337 | } |
338 | void | 338 | void |
339 | packet_put_raw(const char *buf, u_int len) | 339 | packet_put_raw(const char *buf, u_int len) |
@@ -1079,7 +1079,7 @@ packet_disconnect(const char *fmt,...) | |||
1079 | packet_put_cstring(""); | 1079 | packet_put_cstring(""); |
1080 | } else { | 1080 | } else { |
1081 | packet_start(SSH_MSG_DISCONNECT); | 1081 | packet_start(SSH_MSG_DISCONNECT); |
1082 | packet_put_string(buf, strlen(buf)); | 1082 | packet_put_cstring(buf); |
1083 | } | 1083 | } |
1084 | packet_send(); | 1084 | packet_send(); |
1085 | packet_write_wait(); | 1085 | packet_write_wait(); |