summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-20 15:16:25 +0100
committerVolker Lendecke <vl@samba.org>2007-12-21 09:58:20 +0100
commit0565bc733566462bace3bf9dd17a6fe6cbe87db5 (patch)
tree613dff08eb0c177a07b5b94c65d2868261e0ebbc /source3/lib
parentbea16599112eade0a23b810abcb8cdc4b2480fd9 (diff)
downloadsamba-0565bc733566462bace3bf9dd17a6fe6cbe87db5.tar.gz
samba-0565bc733566462bace3bf9dd17a6fe6cbe87db5.tar.bz2
samba-0565bc733566462bace3bf9dd17a6fe6cbe87db5.zip
Make data_blob_string_const return null terminated strings
... nobody was using it, so we're free to change it now :-) (This used to be commit 4b06c68482247d859ec30b8b1920706e43358989)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/data_blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/data_blob.c b/source3/lib/data_blob.c
index e64e6a19a1..8bbbc32d7b 100644
--- a/source3/lib/data_blob.c
+++ b/source3/lib/data_blob.c
@@ -128,7 +128,7 @@ DATA_BLOB data_blob_string_const(const char *str)
{
DATA_BLOB blob;
blob.data = CONST_DISCARD(uint8 *, str);
- blob.length = strlen(str);
+ blob.length = strlen(str) + 1;
blob.free = NULL;
return blob;
}