summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-11-29 19:28:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:27 -0500
commitb9fcb5b961fc4165899487c7cb368ab2d8d15e8a (patch)
treed00577613317aaf45c60fd7e3d46a447cb738aa6 /source3/rpc_parse
parent86d528928d672e8ff95f4876e4285a178a051bf1 (diff)
downloadsamba-b9fcb5b961fc4165899487c7cb368ab2d8d15e8a.tar.gz
samba-b9fcb5b961fc4165899487c7cb368ab2d8d15e8a.tar.bz2
samba-b9fcb5b961fc4165899487c7cb368ab2d8d15e8a.zip
r4005: Fix for bug #2071 reported by Jason Mader <jason@ncac.gwu.edu>.
Use correct enum type for comparisons. Jeremy. (This used to be commit b926480d053e42205e959b9808a6e3bb90db9ce5)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_misc.c2
1 files changed, 1 insertions, 1 deletions
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++;
}
}