git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r4549: got rid of a lot more uses of plain talloc(), instead using
[kai/samba.git]
/
source4
/
lib
/
registry
/
common
/
reg_util.c
diff --git
a/source4/lib/registry/common/reg_util.c
b/source4/lib/registry/common/reg_util.c
index 3a1736914408f3b2e181fe89ab923ee25f9513ef..67c62fe5c86f82b0feb4d3d61b8455e95a8a007d 100644
(file)
--- a/
source4/lib/registry/common/reg_util.c
+++ b/
source4/lib/registry/common/reg_util.c
@@
-63,7
+63,7
@@
char *reg_val_data_string(TALLOC_CTX *mem_ctx, struct registry_value *v)
return ret;
case REG_BINARY:
- ret = talloc
(mem_ctx, v->data_len * 3 + 2
);
+ ret = talloc
_array(mem_ctx, 3, v->data_len+1, "REG_BINARY"
);
asciip = ret;
for (i=0; i<v->data_len; i++) {
int str_rem = v->data_len * 3 - (asciip - ret);