diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-02-20 13:16:01 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-02-20 13:16:01 +0000 |
commit | 064898cf8ad604c3d0a7399964b122d4c53fe7df (patch) | |
tree | 8be01b511bd06b775ba1188c2c9c8e1eeb977429 /source3/libsmb/climessage.c | |
parent | c28d3f635887c22713221d2df3c7aee5b53dc613 (diff) | |
download | samba-064898cf8ad604c3d0a7399964b122d4c53fe7df.tar.gz samba-064898cf8ad604c3d0a7399964b122d4c53fe7df.tar.bz2 samba-064898cf8ad604c3d0a7399964b122d4c53fe7df.zip |
converted a bunch more fns
(This used to be commit f6b8d6730452522f77852af0917cb48424d4c8a9)
Diffstat (limited to 'source3/libsmb/climessage.c')
-rw-r--r-- | source3/libsmb/climessage.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/libsmb/climessage.c b/source3/libsmb/climessage.c index 058358e2f1..47139dcfd6 100644 --- a/source3/libsmb/climessage.c +++ b/source3/libsmb/climessage.c @@ -41,13 +41,11 @@ BOOL cli_message_start(struct cli_state *cli, char *host, char *username, p = smb_buf(cli->outbuf); *p++ = 4; - pstrcpy(p,username); - unix_to_dos(p,True); - p = skip_string(p,1); + p += clistr_push(cli, p, username, -1, + CLISTR_TERMINATE|CLISTR_CONVERT); *p++ = 4; - pstrcpy(p,host); - unix_to_dos(p,True); - p = skip_string(p,1); + p += clistr_push(cli, p, host, -1, + CLISTR_TERMINATE|CLISTR_CONVERT); cli_setup_bcc(cli, p); |