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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user