1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r6261: Tidyup message str printf. Ensure tvs struct is zeroed.

Jeremy.
This commit is contained in:
Jeremy Allison 2005-04-09 00:50:12 +00:00 committed by Gerald (Jerry) Carter
parent f1e12be9ed
commit 6c9f227ef4
2 changed files with 2 additions and 1 deletions

View File

@ -3581,6 +3581,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn, char *inbuf, char
return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
ZERO_STRUCT(sbuf);
ZERO_STRUCT(tvs);
if (tran_call == TRANSACT2_SETFILEINFO) {
if (total_params < 4) {

View File

@ -290,7 +290,7 @@ static BOOL password_change(const char *remote_mach, char *username,
err_str, sizeof(err_str), msg_str, sizeof(msg_str));
if(*msg_str)
printf(msg_str);
printf("%s", msg_str);
if(*err_str)
fprintf(stderr, "%s", err_str);