summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/libsmb/climessage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/libsmb/climessage.c b/source/libsmb/climessage.c
index 5f6ce361339..2b1be75089d 100644
--- a/source/libsmb/climessage.c
+++ b/source/libsmb/climessage.c
@@ -40,9 +40,9 @@ BOOL cli_message_start(struct cli_state *cli, char *host, char *username,
p = smb_buf(cli->outbuf);
*p++ = 4;
- p += clistr_push(cli, p, username, -1, STR_TERMINATE);
+ p += clistr_push(cli, p, username, -1, STR_ASCII|STR_TERMINATE);
*p++ = 4;
- p += clistr_push(cli, p, host, -1, STR_TERMINATE);
+ p += clistr_push(cli, p, host, -1, STR_ASCII|STR_TERMINATE);
cli_setup_bcc(cli, p);
@@ -128,4 +128,3 @@ BOOL cli_message_end(struct cli_state *cli, int grp)
return True;
}
-