diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/samlogon_cache.c | 2 | ||||
-rw-r--r-- | source3/rpc_parse/parse_misc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 0105bc08c3..ed2283725c 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -136,7 +136,7 @@ BOOL netsamlogon_cache_store(TALLOC_CTX *mem_ctx, const char * username, NET_USE /* so we fill it in since winbindd_getpwnam() makes use of it */ if ( !user->uni_user_name.buffer ) { - init_unistr2( &user->uni_user_name, username, STR_TERMINATE ); + init_unistr2( &user->uni_user_name, username, UNI_STR_TERMINATE ); init_uni_hdr( &user->hdr_user_name, &user->uni_user_name ); } diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c index cea31c88a8..c6f05df0c4 100644 --- a/source3/rpc_parse/parse_misc.c +++ b/source3/rpc_parse/parse_misc.c @@ -934,7 +934,7 @@ void init_unistr2(UNISTR2 *str, const char *buf, enum unistr2_term_codes flags) if (buf) { rpcstr_push((char *)str->buffer, buf, len, STR_TERMINATE); num_chars = strlen_w(str->buffer); - if (flags == STR_TERMINATE || flags == UNI_MAXLEN_TERMINATE) { + if (flags == UNI_STR_TERMINATE || flags == UNI_MAXLEN_TERMINATE) { num_chars++; } } |