summaryrefslogtreecommitdiff
path: root/source4/lib/registry/common/reg_util.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-12-21 00:31:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:32 -0500
commit9547649006770022bdcddcc319b81b555222f1c4 (patch)
treec3bd1f666fa05d9b14cb278a8281e2b433db0292 /source4/lib/registry/common/reg_util.c
parent616cf701281331bf0bcad56cbfd22ca22576e3d1 (diff)
downloadsamba-9547649006770022bdcddcc319b81b555222f1c4.tar.gz
samba-9547649006770022bdcddcc319b81b555222f1c4.tar.bz2
samba-9547649006770022bdcddcc319b81b555222f1c4.zip
r4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable (and human-editable) format in
the ldb registry backend. (This used to be commit 6eafd055d1a7d45734a0112228e18ee59d1f7867)
Diffstat (limited to 'source4/lib/registry/common/reg_util.c')
-rw-r--r--source4/lib/registry/common/reg_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/common/reg_util.c b/source4/lib/registry/common/reg_util.c
index 3da875ca0b..3a17369144 100644
--- a/source4/lib/registry/common/reg_util.c
+++ b/source4/lib/registry/common/reg_util.c
@@ -124,7 +124,7 @@ BOOL reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const char *da
case REG_DWORD:
(*value)->data_len = sizeof(uint32);
(*value)->data_blk = talloc_p(mem_ctx, uint32);
- *((uint32 *)(*value)->data_blk) = atol(data_str);
+ *((uint32 *)(*value)->data_blk) = strtol(data_str, NULL, 0);
break;
case REG_NONE: