1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-08 13:49:29 +03:00

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 4b06c68482)
This commit is contained in:
Volker Lendecke
2007-12-20 15:16:25 +01:00
parent bea1659911
commit 0565bc7335

View File

@ -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;
}