summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/editreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/editreg.c b/source3/utils/editreg.c
index eb1ed9bef4..08561dd868 100644
--- a/source3/utils/editreg.c
+++ b/source3/utils/editreg.c
@@ -340,8 +340,8 @@ Hope this helps.... (Although it was "fun" for me to uncover this things,
(((unsigned char *)(buf))[3])=(unsigned char)((val)>>24))
#define SSVAL(buf, val) \
- ((unsigned char)buf[0]=(unsigned char)((val)&0xFF),\
- (unsigned char)buf[1]=(unsigned char)(((val)>>8)&0xFF))
+ ((((unsigned char *)(buf))[0])=(unsigned char)((val)&0xFF),\
+ (((unsigned char *)(buf))[1])=(unsigned char)((val)>>8))
static int verbose = 0;
static int print_security = 0;