diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-09 01:42:01 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-09 01:42:01 +0000 |
commit | 664408d2a794806722aa3f321b92c7bdd667c42e (patch) | |
tree | 0dbce8250bc4d6325ed2f2b6950221a24d62dc2a /packet.c | |
parent | 9d0c06667eb4ca616ffa690e88b9dd7c438e3103 (diff) |
- markus@cvs.openbsd.org 2001/06/07 20:23:05
[authfd.c authfile.c channels.c kexdh.c kexgex.c packet.c ssh.c
sshconnect.c sshconnect1.c]
use xxx_put_cstring()
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,7 +37,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: packet.c,v 1.64 2001/05/31 10:30:16 markus Exp $"); +RCSID("$OpenBSD: packet.c,v 1.65 2001/06/07 20:23:04 markus Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -333,7 +333,7 @@ packet_put_string(const char *buf, u_int len) void packet_put_cstring(const char *str) { - buffer_put_string(&outgoing_packet, str, strlen(str)); + buffer_put_cstring(&outgoing_packet, str); } void packet_put_raw(const char *buf, u_int len) @@ -1079,7 +1079,7 @@ packet_disconnect(const char *fmt,...) packet_put_cstring(""); } else { packet_start(SSH_MSG_DISCONNECT); - packet_put_string(buf, strlen(buf)); + packet_put_cstring(buf); } packet_send(); packet_write_wait(); |