summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_reg.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-08 23:40:49 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-08 23:40:49 +0000
commit99a9b0f7c4f85f46102457cf4707e8948b77fb3f (patch)
tree3bb95603cd8656e486e62ce557d368e0766b1ace /source3/rpc_parse/parse_reg.c
parent37c9693fc8055773812ed86d91f9dfcc554eea30 (diff)
downloadsamba-99a9b0f7c4f85f46102457cf4707e8948b77fb3f.tar.gz
samba-99a9b0f7c4f85f46102457cf4707e8948b77fb3f.tar.bz2
samba-99a9b0f7c4f85f46102457cf4707e8948b77fb3f.zip
UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()
(This used to be commit 9084b7e33dfe717bd8d5604ee71d137e3baef0f5)
Diffstat (limited to 'source3/rpc_parse/parse_reg.c')
-rw-r--r--source3/rpc_parse/parse_reg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c
index b0086f402a..a3d8ebb64a 100644
--- a/source3/rpc_parse/parse_reg.c
+++ b/source3/rpc_parse/parse_reg.c
@@ -768,8 +768,8 @@ void make_reg_r_info(REG_R_INFO *r_r,
uint32 level, char *os_type,
uint32 status)
{
- uint8 buf[512];
- int len = struni2((uint16*)buf, os_type);
+ char buf[512];
+ int len = struni2(buf, os_type);
r_r->ptr1 = 1;
r_r->level = level;