diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-04 11:05:30 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-04 11:05:30 +0000 |
commit | 53d802c72aa712e099dc8de666ab66a21e18fae1 (patch) | |
tree | 8bcda4e005c9ac7a0abf1b9f3ac870798e57fff9 /source/libsmb | |
parent | dafa4d202b65382c365f10365208d9de4eef5586 (diff) | |
download | samba-53d802c72aa712e099dc8de666ab66a21e18fae1.tar.gz samba-53d802c72aa712e099dc8de666ab66a21e18fae1.tar.xz samba-53d802c72aa712e099dc8de666ab66a21e18fae1.zip |
Even if the 'device type' is always an ascii string, use push_string to get
it out onto the wire. Avoids valgrind warnings because the fstrcpy() causes
part of the wire buffer to be 'marked'.
Andrew Bartlett
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/cliconnect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c index 2aeac7273e2..f466b665ebd 100644 --- a/source/libsmb/cliconnect.c +++ b/source/libsmb/cliconnect.c @@ -910,7 +910,7 @@ BOOL cli_send_tconX(struct cli_state *cli, memcpy(p,pword,passlen); p += passlen; p += clistr_push(cli, p, fullshare, -1, STR_TERMINATE |STR_UPPER); - fstrcpy(p, dev); p += strlen(dev)+1; + p += clistr_push(cli, p, dev, -1, STR_TERMINATE |STR_UPPER | STR_ASCII); cli_setup_bcc(cli, p); |