1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/client
Douglas Bagnall 737599268f smbclient: fix string formatting in print command
At one time, the variables lname and rname were char arrays, but now they
are pointers. When they were arrays, sizeof(rname) was the length of the
array, but now it gives the size of the pointer which is not what we want.

In the case where the filename is -, rname was alloced as size 1, which
could never fit the name it wanted to have contain ("stdin-<pid>").

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-12-01 02:02:19 +01:00
..
tests s4:selftest: change the blackbox.smbclient test to use binary mapping for smbclient 2012-05-31 04:46:06 +02:00
cifsdd.c s4/client/cifsdd.c: typo 2016-03-10 00:08:11 +01:00
cifsdd.h Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
cifsddio.c Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
client.c smbclient: fix string formatting in print command 2016-12-01 02:02:19 +01:00
tree.c