diff options
author | Luke Leighton <lkcl@samba.org> | 1999-02-08 23:40:49 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-02-08 23:40:49 +0000 |
commit | 9084b7e33dfe717bd8d5604ee71d137e3baef0f5 (patch) | |
tree | 7d1927067a93f43b64ee815a8cb36296c81d495e /source/rpc_parse/parse_misc.c | |
parent | 9ab81caa065a0e08368fc9137d42ed810fd4b817 (diff) | |
download | samba-9084b7e33dfe717bd8d5604ee71d137e3baef0f5.tar.gz samba-9084b7e33dfe717bd8d5604ee71d137e3baef0f5.tar.xz samba-9084b7e33dfe717bd8d5604ee71d137e3baef0f5.zip |
UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r-- | source/rpc_parse/parse_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c index 6b3fc9415eb..e1a7d3c6a59 100644 --- a/source/rpc_parse/parse_misc.c +++ b/source/rpc_parse/parse_misc.c @@ -329,7 +329,7 @@ creates a UNISTR structure. void make_unistr(UNISTR *str, char *buf) { /* store the string (null-terminated copy) */ - struni2(str->buffer, buf); + struni2((char *)(str->buffer), buf); } /******************************************************************* @@ -372,7 +372,7 @@ void make_buffer3_str(BUFFER3 *str, char *buf, int len) str->buf_len = len * 2; /* store the string (null-terminated 8 bit chars into 16 bit chars) */ - struni2((uint16*)str->buffer, buf); + struni2(str->buffer, buf); } /******************************************************************* @@ -573,7 +573,7 @@ void make_unistr2(UNISTR2 *str, char *buf, int len) str->uni_str_len = len; /* store the string (null-terminated 8 bit chars into 16 bit chars) */ - struni2(str->buffer, buf); + struni2((char *)(str->buffer), buf); } /******************************************************************* |