diff options
Diffstat (limited to 'source4/lib/registry/ldb.c')
-rw-r--r-- | source4/lib/registry/ldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 5c52cb238f..6676193ef4 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -225,7 +225,7 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx, if (data.length == sizeof(uint32_t)) { char *conv_str; - conv_str = talloc_asprintf(msg, "0x%x", IVAL(data.data, 0)); + conv_str = talloc_asprintf(msg, "0x%8.8x", IVAL(data.data, 0)); if (conv_str == NULL) { talloc_free(msg); return NULL; @@ -263,7 +263,7 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx, if (data.length == sizeof(uint64_t)) { char *conv_str; - conv_str = talloc_asprintf(msg, "0x%llx", BVAL(data.data, 0)); + conv_str = talloc_asprintf(msg, "0x%16.16llx", BVAL(data.data, 0)); if (conv_str == NULL) { talloc_free(msg); return NULL; |