summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry')
-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;