From 7be36a0bd99ce7f6391ea49b66ca809380189c36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 14 Oct 2010 10:50:19 +0200 Subject: [PATCH] s4:lib/registry/util.c - strtoll call - better say explicitly that data is in hex format Template is commit deebc934edb9a0a70e7615b1161d7a60fcb1d78f from Wilco. --- source4/lib/registry/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c index d1e953951fc..01668f826f6 100644 --- a/source4/lib/registry/util.c +++ b/source4/lib/registry/util.c @@ -177,7 +177,7 @@ _PUBLIC_ bool reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, } break; case REG_QWORD: { - uint64_t tmp = strtoll(data_str, NULL, 0); + uint64_t tmp = strtoll(data_str, NULL, 16); *data = data_blob_talloc(mem_ctx, NULL, sizeof(uint64_t)); if (data->data == NULL) return false; SBVAL(data->data, 0, tmp); -- 2.34.1