git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9289537
)
lib/util: fix strhex_to_data_blob to use data_blob_talloc.
author
Günther Deschner
<gd@samba.org>
Sat, 18 Oct 2008 19:06:07 +0000
(21:06 +0200)
committer
Günther Deschner
<gd@samba.org>
Sat, 18 Oct 2008 20:46:37 +0000
(22:46 +0200)
Jelmer, I'm pretty sure you wanted to do this. Please check.
Guenther
lib/util/util_str.c
patch
|
blob
|
history
diff --git
a/lib/util/util_str.c
b/lib/util/util_str.c
index c105e1d58f5d24c2ca5f44655e0d27a3b8e1ceee..231f7f2c6f3367a8d8753dbfcaeed90f4b0bba53 100644
(file)
--- a/
lib/util/util_str.c
+++ b/
lib/util/util_str.c
@@
-222,7
+222,7
@@
_PUBLIC_ size_t strhex_to_str(char *p, size_t p_len, const char *strhex, size_t
*/
_PUBLIC_ _PURE_ DATA_BLOB strhex_to_data_blob(TALLOC_CTX *mem_ctx, const char *strhex)
{
- DATA_BLOB ret_blob = data_blob
(mem_ctx
, strlen(strhex)/2+1);
+ DATA_BLOB ret_blob = data_blob
_talloc(mem_ctx, NULL
, strlen(strhex)/2+1);
ret_blob.length = strhex_to_str((char *)ret_blob.data, ret_blob.length,
strhex,