summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-08 23:42:23 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-08 23:57:34 +0200
commitaa9e782a4d27600096230be44e0e18971e503e20 (patch)
treee12236de05b39a3780e0498bb13e30d2caf5262d
parent7c54ff5898b98e75c848dde84e1d1845ec0e3666 (diff)
downloadsamba-aa9e782a4d27600096230be44e0e18971e503e20.tar.gz
samba-aa9e782a4d27600096230be44e0e18971e503e20.tar.bz2
samba-aa9e782a4d27600096230be44e0e18971e503e20.zip
s4:registry - "patchfile_preg.c" - make a SIVAL statement nicer
-rw-r--r--source4/lib/registry/patchfile_preg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/patchfile_preg.c b/source4/lib/registry/patchfile_preg.c
index c68fb98a13..8854225c76 100644
--- a/source4/lib/registry/patchfile_preg.c
+++ b/source4/lib/registry/patchfile_preg.c
@@ -186,7 +186,7 @@ _PUBLIC_ WERROR reg_preg_diff_save(TALLOC_CTX *ctx, const char *filename,
}
strncpy(preg_header.hdr, "PReg", 4);
- SIVAL(&preg_header, 4, 1);
+ SIVAL(&preg_header.version, 0, 1);
write(data->fd, (uint8_t *)&preg_header,8);
data->ctx = ctx;